--- On Tue, 8/12/09, Nirina F wrote:
> I would like to know what is the magnitude of standard
> deviation gain in years of schooling from residence in
> metro area from the following example. <snip>
Below are 2 equivalent solutions:
*---------------------- begin example ---------------------
use "http://fmwww.bc.edu/ec-p/data/hayashi/griliches76.dta", clear
// method 1
reg s smsa iq med kww age mrt
sum s if !missing(s, smsa, iq, med, kww, age, mrt)
lincom smsa/`r(sd)'
// method 2
sum s if !missing(s, smsa, iq, med, kww, age, mrt)
replace s = s/r(sd)
reg s smsa iq med kww age mrt
*--------------------- end example ------------------------
( For more on how to use examples I sent to statalist see:
http://www.maartenbuis.nl/stata/exampleFAQ.html )
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/