like {cwhmisc}R Documentation

Prepare new data for prediction

Description

Prepare data to conform to structure of data used in a model, for use as new data

Usage

 like(X, ...)

Arguments

Data used in linear model like lmList of other arguments to model to be used for prediction
X
...

Value

Data usable for predict which are now compatible, all factors have the same level set, and so forth.

Author(s)

Peter Dalgaard, p.dalgaard@biostat.ku.dk

Examples

## Not run: 
 foo <- lm(formula, data=foe)
 fie <- like(foe, sex="F", age=20:25, smoke="1-7")
 predict(foo, newdata=fie)
 
## End(Not run)

[Package cwhmisc version 2.0.1 Index]