Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: how to express the mean of a variable in a calculation?


From   jjc.li@utoronto.ca
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: how to express the mean of a variable in a calculation?
Date   Tue, 07 Jul 2009 19:34:34 -0400

Dear all,

I am going to calculate sth after the the regression. I know _b[x1] represents the coef. of variable x1. But how to express the mean of variable x2, in particular just the mean of x2 from year 1 to year 5 (let's say there are total 10 years)?

Thanks!

Crystal

*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index