Statalist


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

Re: Fwd: st: standard deviation gain calculation with Stata


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: Fwd: st: standard deviation gain calculation with Stata
Date   Tue, 8 Dec 2009 16:16:40 +0000 (GMT)

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



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