Skip to content
Prev 257145 / 398506 Next

600 people's time series

Your questions are as basic that it smells like home/classwork. Try to 
formulate precise questions and not questions like "how do I solve this 
general problem" and you are much mor likely to get answers.

To get you started:

For questions on how to plot values from dataframes please have a look 
either at "an introduction to R (pdf)", some basic textbooks or just 
google: "r-project plotting tutorial" (the second link should get you 
started)

For the regression I would loop through all ids and calculate the 
regression for a subset of the dataframe like:

for (i:1:...)
{
invest = DF$invest[DF$id==i]
payout=....
invest.norm=invest/mean(...)
l.model=lm(...)
}


You will have to find out the details yourself. We will happily help if 
you post some precise (!) questions in case you get stuck!


Jannis
On 04/16/2011 07:15 PM, ???Su Jiangdong wrote: