search for: xcat1

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

Did you mean: xcat
2012 Apr 20
1
predictOMatic for regression. Please try and advise me
...c <- function(model = NULL, fl = NULL, ...){ nd <- newdataMaker(model, fl) fit <- predict(model, newdata=nd, ...) cbind(fit, nd) } set.seed(12345) x1 <- rnorm(100) x2 <- rnorm(100) x3 <- rnorm(100) x4 <- rnorm(100) x5 <- rpois(100, 5) x6 <- rgamma(100, 2,1) xcat1 <- gl(2,50, labels=c("M","F")) xcat2 <- cut(rnorm(100), breaks=c(-Inf, 0, 0.4, 0.9, 1, Inf), labels=c("R", "M", "D", "P", "G")) dat <- data.frame(x1, x2, x3, x4, x5, xcat1, xcat2) rm(x1, x2, x3, x4, xcat1, xcat2) dat$y &...