Re: [R] Questions for package ts prediction

2003-06-09 Thread zhu wang
On Mon, 2003-06-09 at 03:56, Prof Brian Ripley wrote: > You have a scoping problem: the predict method needs to find the data: > please supply an explicit newdata argument. Your first example works > because `y' happens to be globally visible and be the right object. > Thanks. That makes sense.

Re: [R] Questions for package ts prediction

2003-06-09 Thread Prof Brian Ripley
You have a scoping problem: the predict method needs to find the data: please supply an explicit newdata argument. Your first example works because `y' happens to be globally visible and be the right object. On 9 Jun 2003, zhu wang wrote: > I am trying to write a function to return prediction va

[R] Questions for package ts prediction

2003-06-08 Thread zhu wang
Dear helpers, I am trying to write a function to return prediction values using package ts. I have written three different versions since I am not sure what's wrong with my func2. func and func1 return the same results.But func1 and func2 don't. In particular, the only difference between "func1" a