like {cwhmisc} | R Documentation |
Prepare data to conform to structure of data used in a model, for use as new data
like(X, ...)
X |
|
... |
Data usable for predict
which are now compatible, all factors have the same level set, and so forth.
Peter Dalgaard, p.dalgaard@biostat.ku.dk
## 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)