search for: m1mf

Displaying 1 result from an estimated 1 matches for "m1mf".

Did you mean: h1mf
2012 Apr 20
1
predictOMatic for regression. Please try and advise me
..., xcat2) rm(x1, x2, x3, x4, xcat1, xcat2) dat$y <- with(dat, 0.03 + 0.1*x1 + 0.1*x2 + 0.4*x3 -0.1*x4 + 0.01*x5 + 0.1*x6 + 2*rnorm(100)) ##ordinary regression. m1 <- lm(y ~ x1 + x2 + x3 + x4 + x5 + x6 + xcat1 + xcat2, data=dat) summary(m1) ## Use the fitted model's data frame for analysis m1mf <- model.frame(m1) ## If you have rockchalk 1.5.4, run these: library(rockchalk) summarize(m1mf) ## otherwise, run summary(m1mf) ## First, overview for values of xcat1 newdataMaker(m1, fl = list(xcat1 = levels(m1mf$xcat1))) ## mix and match all combinations of xcat1 and xcat2 newdataMaker(m1,...