median_lifespan: Compute the median lifespan

Description Usage Arguments Value Examples

View source: R/tools.R

Description

This function is called internally by other functions. It computes the predicted median lifespan.

Usage

1
median_lifespan(newdata, models_list)

Arguments

newdata

A data frame providing the covariate values for predictions

models_list

The list of fitted models

Value

The value of the median lifespan.

Examples

1
2
3
4
d <- data.frame(Sex = "males", CaptureMethod = "CAPTIVE",
                CaptureAge = 0, Age = 0:100, TimeSinceCapture = 0,
                Region = "Mandaley", BirthCohort = "1960")
median_lifespan(newdata = d, models_list = Models)

courtiol/SileR documentation built on May 16, 2020, 8:10 p.m.