The dataframe must contain columns "stage" and "stageNext" with values of the names of the discrete classes and the name "continuous" where appropriate, in the current and subsequent time step. Continuous categories are also defined by their measurements, contained in "size" and "sizeNext". This is necessary for defining the mean and variance of the continuous stage of individuals emerging from discrete stages. Alternatively, you can enter the transition matrix for the discrete stages in the 'discreteTrans' argument.
makeDiscreteTransInteger(dataf,
stages = NA,
discreteTrans = NA,
meanToCont = NA,
thetaToCont = NA,
continuousToDiscreteExplanatoryVariables = "size",
distToCont = "poisson")
as.factor
) containing either names of discrete stages or "continuous" or "dead"), "size", "sizeNext", and "surv" (continuous and boolean variables respectively).Ellner & Rees. 2006. Integral projection models for species with complex demography. The American Naturalist 167, p410-428.
makeIPMPmatrix
, makeDiscreteTrans
dff <- generateData(type="discrete")
dff$fec[dff$fec==0] <- NA
dff$size <- pmax(floor(dff$size+10),0)
dff$sizeNext <- pmax(floor(dff$sizeNext+10),0)
discTrans <- makeDiscreteTransInteger(dff)
makeIPMPmatrix(nBigMatrix = 10, growObj = makeGrowthObj(dff),
survObj = makeSurvObj(dff), discreteTrans = discTrans)
Run the code above in your browser using DataLab