Gabor,
Let me change newdata since it's confusing.

Suppose I want to predict, year 1990, and quarter 2.
> newdata <- data.frame(c(1990, 1, 0, 0)

Since Q1 is a baseline, we will only see Q2, Q3, Q4.  So, 4 parameters in
total.

Mike


On Sun, Feb 23, 2014 at 7:13 PM, Gabor Grothendieck <ggrothendi...@gmail.com
> wrote:

> 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
>

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to