On Sun, Feb 23, 2014 at 6:56 PM, C W <tmrs...@gmail.com> wrote: > Gabor, > I want the new data to be this, > newdata <- data.frame(c(1, 0, 0, 0)) >
Its not clear what this means. There are two input variables so we must specify two inputs. For example, this would get the prediction for t=1 and for level 1 of q which is a factor with the levels 1:4 : predict(model, list(t = 1, q = factor(1, 1:4)) -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.