vital_rate {cxr} | R Documentation |
Vital rate calculation
Description
Calculates vital rates from their effect sizes and terms. This is equivalent to predicting from a binomial glm with given coefficients. In this version, the user needs to ensure that 'param' and 'env' match, i.e. that if the 'param' list is defined with environmental forcing, it is passed here, and viceversa. In future versions I may implement checks for that here, but for now, be aware that it will fail.
Usage
vital_rate(vr, sp, site, param, env = NULL, densities)
Arguments
vr |
integer or char, vital rate to obtain, from the ones defined in 'param'. So far, valid names are "Sj","Sn","Sr","Rn","Rr","D","Ds,"O". |
sp |
integer or char, species |
site |
intger or char, site |
param |
param nested list (see 'build_param') |
env |
optional numeric, environmental forcing |
densities |
densities of all sp in the site, including individuals from all three life stages |
Value
numeric value