Gabor,
Your response worked perfectly,  list(t = 1, q = factor(1, 1:4) was what I
couldn't figure out.  Thank you.

In predict.lm(model, newdata), 2nd argument MUST be data.frame().  Why does
list() also work?

Mike


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

> On Sun, Feb 23, 2014 at 7:25 PM, C W <tmrsg11@gmail.com> wrote:
> > 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.
> >
>
> The formula:
>
>     tsdata ~ t + q
>
> regresses tsdata on t and q so if you come up with a new value of t and a
> new
> value q you can make a new prediction.  The year is not one of those
> two variables.
> If that is the model you want then you must specify a t and a q as in
> my last response.
>
> --
> Statistics & Software Consulting
> GKX Group, GKX Associates Inc.
> tel: 1-877-GKX-GROUP
> email: ggrothendieck at gmail.com
>

	[[alternative HTML version deleted]]


