Hi all,
I am fairly new to STATA so I would appreciate help. To simplify, I have a dataset with two columns: year and money as shown below (fictitious data, for illustration):
What I would like to do is for the year 2009, generate a variable that displays the standard error if I were to regress money onto year for the five previous years. So, the new column in 2009 would be the standard error of regressing money onto year for 2008-2004. I can do this in excel fairly easily, but I cannot seem to do this is STATA. If it helps, I have been able to create five columns for each row that obtains the values for 'money' from the previous five years, but I do not think that will help.
Thanks everyone. Really appreciate the assistance.
-David
I am fairly new to STATA so I would appreciate help. To simplify, I have a dataset with two columns: year and money as shown below (fictitious data, for illustration):
2000 | 95256 |
2001 | 98531 |
2002 | 65465 |
2003 | 54612 |
2004 | 54624 |
2005 | 54652 |
2006 | 64671 |
2007 | 32132 |
2008 | 13211 |
2009 | 25896 |
Thanks everyone. Really appreciate the assistance.
-David
Comment