Generate parameters for simulation on a Network. Parameters include: average generation time g, population growth rate Rm, aquatic mortality μAq, and aquatic survival θAq, which are shared between patches and calculated by calcAverageGenerationTime, calcPopulationGrowthRate, and calcLarvalStageMortalityRate.
Patch-specific parameters α and Leq
are calculated for each patch by calcDensityDependentDeathRate
runID: Begin counting runs with this set of parameters from this value
nPatch: Number of Patch
simTime: Maximum time to run simulation
sampTime: Times to sample, used as tNow %% sampTime, default is every day
tEgg: Length of egg stage
tLarva: Length of larval instar stage
tPupa: Length of pupal stage
beta: Female egg batch size of wild-type
muAd: Wild-type daily adult mortality (1/muAd is average wild-type lifespan)
popGrowth: Daily population growth rate (used to calculate equilibrium)
AdPopEQ: Single number or vector of adult population size at equilibrium (single number implies all patches have the same population)
LarPopRatio: May be empty; if not, a vector gives the wildtype gene frequencies among larval stages at the beginning of simulation or a matrix provides different initial frequencies for each patch (every row is a different patch, must have nrow = nPatch)
AdPopRatio_F: May be empty; if not, a vector gives the wildtype gene frequencies among adult females at the beginning of simulation or a matrix provides different initial frequencies for each patch (every row is a different patch, must have nrow = nPatch)
AdPopRatio_M: May be empty; if not, a vector gives the wildtype gene frequencies among adult males at the beginning of simulation or a matrix provides different initial frequencies for each patch (every row is a different patch, must have nrow = nPatch)
inheritanceCube: Inheritance cube to check/set population ratios at the beginning of the simulation
Examples
# using default parameters for 2 patches# using different population sizes for patchessimPars <- parameterizeMGDrivE(nPatch =2, simTime =365, AdPopEQ = c(100,200), inheritanceCube = cubeMendelian())