Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Anova SAS vs.Stata


From   Cinzia Rienzo <[email protected]>
To   [email protected]
Subject   st: Anova SAS vs.Stata
Date   Wed, 30 May 2007 13:33:56 +0100 (BST)

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/



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