predict_avg: Predict mortality using model averaging

Description Usage Arguments Value Examples

View source: R/predictions.R

Description

This function is called internally by other functions. It predicts the mortality rate (per year) of elephants based on a covariate information provided as a data frame and based on a list of models used to compute the parameter estimates by model averaging.

Usage

1
predict_avg(models_list, newdata)

Arguments

models_list

The list of fitted models

newdata

A data frame providing the covariate values for predictions

Value

A vector with the mortality prediction(s).

Examples

1
2
3
4
d <- data.frame(Sex = "males", CaptureMethod = "STOCKAGE",
                CaptureAge = 20, Age = 30, TimeSinceCapture = 10,
                Region = "Kachin", BirthCohort = "2000")
predict_avg(models_list = Models, newdata = d)

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