[R] predict.lm() does not take ts objects in formula
Gabor Grothendieck
ggrothendieck at gmail.com
Mon Feb 24 01:13:12 CET 2014
On Sun, Feb 23, 2014 at 6:56 PM, C W <tmrsg11 at 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
More information about the R-help
mailing list