makeNewData {openCR} | R Documentation |
Create Default Design Data
Description
Internal function used to generate a dataframe containing design data for the base levels of all predictors in an openCR object.
Usage
## S3 method for class 'openCR'
makeNewData(object, all.levels = FALSE, ...)
Arguments
object |
fitted openCR model object |
all.levels |
logical; if TRUE then all covariate factor levels appear in the output |
... |
other arguments (not used) |
Details
makeNewData
is used by predict
in lieu of
user-specified ‘newdata’. There is seldom any need to call
makeNewData
directly.
makeNewData
uses saved agelevels for grouping ages
(openCR >= 2.2.6).
Value
A dataframe with one row for each session, and columns for the
predictors used by object$model
.
See Also
Examples
## Not run:
## null example (no covariates)
ovenCJS <- openCR.fit(ovenCH)
makeNewData(ovenCJS)
## End(Not run)
[Package openCR version 2.2.6 Index]