# with only one life stage
forecastX <- devRateIBMparam(
tempTS = rnorm(n = 20, mean = 20, sd = 1),
timeStepTS = 10,
eq = briere2_99,
myParam = list(
list(
aa = 0.0002,
Tmin = 10,
Tmax = 36.1,
bb = 2.84)
),
numInd = 10,
stocha = 0.015,
timeLayEggs = 1
)
# with two life stages
forecastXX <- devRateIBMparam(
tempTS = rnorm(n = 20, mean = 20, sd = 1),
timeStepTS = 10,
eq = briere2_99,
myParam = list(
lifeStage01 = list(
aa = 0.0002,
Tmin = 10,
Tmax = 36.1,
bb = 2.84),
lifeStage02 = list(
aa = 0.0004,
Tmin = 8,
Tmax = 35,
bb = 2.8)
),
numInd = 10,
stocha = 0.015,
timeLayEggs = 1
)
# with three life stages, adult stage tacking place after the pupal stage,
# so that adultLifeStage = 2. Adult longevity was exacerbated at 15 days
# to highlight the impact on function output.
forecastXXX <- devRateIBMparam(
tempTS = rnorm(n = 120, mean = 20, sd = 1),
timeStepTS = 1, eq = briere2_99,
myParam = list(
lifeStage_larva = list(
aa = 0.0002,
Tmin = 10,
Tmax = 36.1,
bb = 2.84),
lifeStage_pupa = list(
aa = 0.0004,
Tmin = 8,
Tmax = 35,
bb = 2.8),
lifeStage_egg = list(
aa = 0.0002,
Tmin = 8,
Tmax = 35,
bb = 2.8)
),
numInd = 5, stocha = 0.015,
timeLayEggs = 15, adultLifeStage = 2
)
# with three life stages, and a different model equation for each life stage.
forecastXXXX <- devRateIBMparam(
tempTS = rnorm(n = 60, mean = 20, sd = 1),
timeStepTS = 1,
eq = list("briere2_99", "lactin2_95", "campbell_74"),
myParam = list(
list(
aa = 0.0002,
Tmin = 10,
Tmax = 36.1,
bb = 2.84
),
list(
aa = 0.009,
Tmax = 35.299,
deltaT = 0.201,
bb = -1.049
),
list(
aa = -0.0459,
bb = 0.0044
)
),
numInd = 10,
stocha = 0.015,
timeLayEggs = 1
)
Run the code above in your browser using DataLab