newdata | R Documentation |
Internal function used to generate a dataframe containing design data for the base levels of all predictors in an secr object.
## Default S3 method:
makeNewData(object, all.levels = FALSE, ...)
## S3 method for class 'secr'
makeNewData(object, all.levels = FALSE, bytrap = FALSE, ...)
object |
fitted secr model object |
all.levels |
logical; if TRUE then all levels of factors are included |
bytrap |
logical; if TRUE then all detectors are included |
... |
other arguments (not used) |
makeNewData
is used by predict
in lieu of
user-specified ‘newdata’. There is seldom any need to call the function
makeNewData
directly.
With ‘bytrap’ there is a row for each detector, with columns for the corresponding levels of any detector covariates that appear in the model.
A dataframe with one row for each session and group, and columns for the
predictors used by object$model
.
predict.secr
, secr.fit
## from previously fitted model
makeNewData(secrdemo.b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.