stepwise {mimR} | R Documentation |
Functions to do stepwise model selection in MIM to achieve a new model object.
stepwise(x, arg = NULL)
x |
A mimModel object |
arg |
Stepwise options to MIM |
a mimModel object
Before using mimR, make sure that the MIM program is runnning.
Søren Højsgaard, sorenh@agrsci.dk
David Edwards, An Introduction to Graphical Modelling, Springer Verlag, 2002
data(carcass) gmd.carc <- as.gmData(carcass) m.main <- fit(mim(~., data=gmd.carc)) m.sat <- fit(mim(~.., data=gmd.carc)) m.main <- mim(~., data=gmd.carc) m.sat <- mim(~.., data=gmd.carc) m.m <- stepwise(m.main, "f") # forward m.s <- stepwise(m.sat, "s") # backward, exact tests