secr.make.newdata: Create Default Design Data

Description Usage Arguments Details Value See Also Examples

Description

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

Usage

1
2
3
4
## Default S3 method:
makeNewData(object, all.levels = FALSE, ...)
## S3 method for class 'secr'
makeNewData(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

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

Value

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

See Also

predict.secr, secr.fit

Examples

1
2
## from previously fitted model
makeNewData(secrdemo.b)

secr documentation built on Oct. 18, 2021, 9:06 a.m.