[R] iterative regressions, adding a new line of data each time

Rolf Turner r.turner at auckland.ac.nz
Mon Feb 1 20:16:51 CET 2010


On 31/01/2010, at 12:14 PM, ace834 wrote:

> 
> Hi, I am pretty new to R. I'm trying run a regression repeatedly, adding a
> new data point each time, and then storing the predicted Y values. For
> example, let's say I have 500 data points and I run the regression. I would
> then like to store the Y value, run the regression again using 501 data
> points, store the new Y, run the regression with 502 data points, store the
> Y, and so on. What I would like is a new object that has all of the
> predicted Y values.  I'm using time series data, and I'm running a
> multivariable regression.  Any help would be greatly appreciated.  Thanks.


This would seem to be very easy to do using a for loop and a list.

What is the problem? Is this a homework question?

	cheers,

		Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}



More information about the R-help mailing list