Ashoka University Stata Results Log Filenaresh Sehdev
Ashoka University Stata Results Log Filenaresh Sehdev
Ashoka University Stata Results Log Filenaresh Sehdev
bcuse wage1
predict e , residuals
describe
gen sqre=e^2
describe
hettest female
800-STATA-PC http://www.stata.com
979-696-4600 [email protected]
979-696-4601 (fax)
Single-user 8-core Stata perpetual license:
Group
Notes:
. bcuse wage1
obs: 526
size: 50,496
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
Sorted by:
. regress wage educ exper expersq female married
------------------------------------------------------------------------------
-------------+----------------------------------------------------------------
------------------------------------------------------------------------------
. predict e , residuals
. describe
size: 52,600
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
Sorted by:
. gen sqre=sqr[e]
r(111);
. gen sqre=e^2
. describe
obs: 526
size: 54,704
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
Sorted by:
------------------------------------------------------------------------------
-------------+----------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-------------+----------------------------------------------------------------
------------------------------------------------------------------------------
. rvgplot female
r(199);
. rvplot female
r(199);
. het female
r(199);
. predict e , residuals
r(110);
. hettest female
Variables: female
chi2(1) = 34.16
------------------------------------------------------------------------------
-------------+----------------------------------------------------------------
------------------------------------------------------------------------------