Learn R Programming

openCR (version 2.2.6)

makeNewData: 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 openCR
makeNewData(object, all.levels = FALSE, ...)

Value

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

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).

See Also

openCR.fit

Examples

Run this code

if (FALSE) {

## null example (no covariates)
ovenCJS <- openCR.fit(ovenCH)
makeNewData(ovenCJS)


}

Run the code above in your browser using DataLab