openCR.make.newdata: Create Default Design Data

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

Value

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

See Also

openCR.fit

Examples


## Not run: 

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



## End(Not run)


openCR documentation built on Sept. 25, 2022, 5:06 p.m.