Re: [R] Iterative regression through a series

2013-04-05 Thread triskell4-umbre...@yahoo.fr
Thank you , Rui--it works very well now.  I'll have to check out the attributes and classes of the things you changed to understand what was going wrong before.  Integer versus numeric, perhaps.  I'll look into seq_len() as well.   Many, many thanks for your help.  It will make this and several

[R] Iterative regression through a series

2013-04-02 Thread triskell4-umbre...@yahoo.fr
Hello, Some context:  let's say I have a data series (let's call it PRICE, for simplicity), sample size N.  I have a desire to regress that on TIME, and then to use the TIME and intercept coefficients to predict the price in the next period and to use the standard error to calculate a

Re: [R] Iterative regression through a series

2013-04-02 Thread triskell4-umbre...@yahoo.fr
That is very helpful--I've run your code, and it works perfectly with the example data.  However, I'm having some problems using my actual data--probably because my Time variable isn't actually a regular series (as it was in the example: Time=1:100).  When run, it's producing estim and error