Skip to content
Prev 273212 / 398506 Next

rolling regression

It seems you don't really know how predict works. If you don't supply
new data, it will only return the least squares fit to the old data,
which is the large data block you saw. Check the first example given
in ?predict to see how this works for new (out of sample) data.

More importantly, use of lm() gives a model for contemporaneous
fitting of your data to cash_ret. You probably need to use a time
series model that has forecasting built into it (unless you can
somehow your independent variables before your dependent variables)

Michael Weylandt
On Sun, Oct 2, 2011 at 11:41 PM, Darius H <xenon99 at hotmail.com> wrote: