powered by
Internal function used to generate a dataframe containing design data for the base levels of all predictors in an openCR object.
# S3 method for openCR makeNewData(object, all.levels = FALSE, ...)
A dataframe with one row for each session, and columns for the predictors used by object$model.
object$model
fitted openCR model object
logical; if TRUE then all covariate factor levels appear in the output
other arguments (not used)
makeNewData is used by predict in lieu of user-specified `newdata'. There is seldom any need to call makeNewData directly.
makeNewData
predict
makeNewData uses saved agelevels for grouping ages (openCR >= 2.2.6).
openCR.fit
if (FALSE) { ## null example (no covariates) ovenCJS <- openCR.fit(ovenCH) makeNewData(ovenCJS) }
Run the code above in your browser using DataLab