R0Calc: Calculates net reproductive rate (R0) from an IPM.

View source: R/IPMpack-Analyses.r

R0CalcR Documentation

Calculates net reproductive rate (R0) from an IPM.

Description

Estimates lifetime reproductive success from a full IPM, including survival, growth and fecundity.

Usage

R0Calc(Pmatrix, Fmatrix)

Arguments

Pmatrix

a matrix (not necessarily of class IPMmatrix).

Fmatrix

a matrix (not necessarily of class IPMmatrix).

Value

numeric

Author(s)

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

References

Caswell, 2001. Matrix population models: analysis, construction and interpretation. 2nd ed. Sinauer. p126.

See Also

makeIPMPmatrix,makeIPMFmatrix

Examples

dff <- generateData()
Pmatrix <- makeIPMPmatrix(minSize = min(dff$size, na.rm = TRUE),
maxSize = max(dff$size, na.rm = TRUE), growObj = makeGrowthObj(dff), 
survObj = makeSurvObj(dff), correction="constant")
Fmatrix <- makeIPMFmatrix(minSize = min(dff$size, na.rm = TRUE),
maxSize = max(dff$size, na.rm = TRUE), 
fecObj = makeFecObj(dff,Formula=fec~size), correction="constant")
R0Calc(Pmatrix, Fmatrix)

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