Dear all,
i am translating some commands from SaS to Stata;
my main dubt is about the variance of the residuals, from which i
should get the between, within and total variance.
command for Sas are the following:
proc summary vardef=weight data=one;
class year edcl expcl;
var lwage1 rw1;
output out=here.bw2m
mean=
var(lwage1)=totvar1
var(rw1)=resvar1
sumwgt=wgt1
command for STATA shoul be :
by year, sort: loneway lwage1 rw1 [aweight = hwt]
My questions are:
1) how do i account into STATA for the "class year edcl expcl;"
2) is the Sata command correct consistent with Sas one?
i would appratiate any suggestions.
thanks
Cinzia
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/