Learn R Programming

IPMpack (version 2.1)

growSurv: Combines growth and survival.

Description

Predicts the probability density function of continuous (e.g. size) stage at time t+1 given stage values at time t and survival probability as a function of stage values at time t, given a growth and survival object.

Usage

growSurv(size, sizeNext, cov, growthObj, survObj)

Arguments

size
vector of current size(s).
sizeNext
vector of future size(s).
cov
covariate level (numeric of length 1).
growthObj
a growth object.
survObj
a survival object.

Value

numeric defining the pdf (probability density function).

Details

makeIPMPmatrix and variants there-of apply outer to this function to efficiently obtain the IPM P matrix.

References

Easterling, Ellner & Dixon. 2000. Size-specific sensitivity: a new structured population model. Ecology 81, p694-708.

See Also

growth, surv

Examples

Run this code
dff <- generateData()
gr1 <- makeGrowthObj(dff)
sv1 <- makeSurvObj(dff)
sizeRange <- c(1:20)
sizeInit <- 1
growSurv(sizeInit, sizeRange, data.frame(covariate=1), gr1, sv1)
plot(growSurv(sizeInit, sizeRange, data.frame(covariate=1), gr1, sv1), 
    type="l", col = "dark gray", 
	xlab = "Continuous (e.g. size) stage at time t+1", 
	ylab = paste("Probability of survival to a specific size in t+1 from size ", 
			sizeInit, " at time t"))

Run the code above in your browser using DataLab