Learn R Programming

IPMpack (version 2.1)

surv: Survival

Description

Predicts the probability of surviving at a given size given a survival object.

Usage

surv(size, cov, survObj)

Arguments

size
a numeric vector of current sizes.
cov
a data-frame with one row containing all covariates.
survObj
a survObj.

Value

a vector of length size with values between 0 and 1.

See Also

growth, growSurv, surv-methods

Examples

Run this code
dff <- generateData()
sv1 <- makeSurvObj(dff)
surv(1:50, data.frame(cov=1), sv1)

Run the code above in your browser using DataLab