Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Calculating average for a pooled data set
From
Ozgur Ozdemir <[email protected]>
To
Stata <[email protected]>
Subject
st: Calculating average for a pooled data set
Date
Mon, 30 Jan 2012 16:12:22 +0000
Hi,
I have a pooled data set including year, industry, companyID, sales, R&D etc. and would like to run a regression against the average of Lag 1 and 2 years. eg
Y(t) = a* X((t-1) + (t-2))/2 + b
If my dependent variable is in year 2008, all independent varriables will be the average of 2006 and 2007. I also would like to control for the year and industry dummies.
Please can you help me to find the write stata commands to run the regression.
kind regards
Ozgur Ozdemir
T: +44 (0) 75 0332 9865
E: [email protected]
Skype : ozgurozdemir2005
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/