search for: tracevar

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

2011 Jan 28
6
User error in calling predict/model.frame
...= 10.2058714830537, scale = 0.984627257169526), scale(xxB, center = 20.4491690881149, scale = 1.13765718273923)) An example case: dat <- data.frame(xxA = rnorm(20,10), xxB = rnorm(10,20)) dat$out <- with(dat,xxA+xxB+xxA*xxB+rnorm(20,20)) xVar <- "scale(xxA)" traceVar <- "scale(xxB)" DVname <- "out" lm.obj <- lm.res.scale <- lm(out ~ scale(xxA)*scale(xxB),data=dat) my.data <- lm.obj$model #load the data from the lm object X1 <- my.data[,xVar] X2 <- my.data[,traceVar] DV <- lm.obj$model[,DVname]...