Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

secr.make.newdata

Create Default Design Data


Description

Internal function used to generate a dataframe containing design data for the base levels of all predictors in an secr object.

Usage

## Default S3 method:
make.newdata(object, all.levels = FALSE, ...)
## S3 method for class 'secr'
make.newdata(object, all.levels = FALSE, ...)

Arguments

object

fitted secr model object

all.levels

logical; if TRUE then all levels of factors are included

...

other arguments (not used)

Details

make.newdata is used by predict in lieu of user-specified ‘newdata’. There is seldom any need to call make.newdata directly.

Value

A dataframe with one row for each session and group, and columns for the predictors used by object$model.

See Also

Examples

## from previously fitted model
make.newdata(secrdemo.b)

secr

Spatially Explicit Capture-Recapture

v4.4.1
GPL (>= 2)
Authors
Murray Efford
Initial release
2021-05-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.