Is there a way to rbind this?  Do I have to use use a package like 'zoo'
and merge()?

p <- predict(model, data.frame(t = 1, q = factor(1, 1:4))
rbind(tsdat, p)


On Sun, Feb 23, 2014 at 8:43 PM, C W <tmrsg11@gmail.com> wrote:

> I guess this is for anyone in the future.
>
> > predict(model, data.frame(t = 1, q = factor(1, 1:4))
>
> This would be the answer.  Thanks again, Gabor!
>
> Mike
>
>
> On Sun, Feb 23, 2014 at 8:23 PM, Gabor Grothendieck <
> ggrothendieck@gmail.com> wrote:
>
>> On Sun, Feb 23, 2014 at 7:40 PM, C W <tmrsg11@gmail.com> wrote:
>> > 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?
>> >
>>
>> Yes, it would be better to use a data.frame here to be consistent with
>> the documentation even though a list does work.
>>
>> --
>> Statistics & Software Consulting
>> GKX Group, GKX Associates Inc.
>> tel: 1-877-GKX-GROUP
>> email: ggrothendieck at gmail.com
>>
>
>

	[[alternative HTML version deleted]]


