growSurv: Combines growth and survival.

View source: R/IPMpack-Classes_and_Methods.R

growSurvR Documentation

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.

Details

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

Value

numeric defining the pdf (probability density function).

Note

Code developed following Mark Rees, Dylan Childs & Karen Rose.

Author(s)

C. Jessica E. Metcalf, Sean M. McMahon, Roberto Salguero-Gomez, Eelke Jongejans & Cory Merow.

References

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

See Also

growth, surv

Examples

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"))

wpetry/IPMpack2 documentation built on Sept. 29, 2022, 9:41 a.m.