Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: FW: comparing coefficients between 2 models with suest and pweight
From
Thorhildur Olafsdottir <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: FW: comparing coefficients between 2 models with suest and pweight
Date
Thu, 4 Oct 2012 14:42:20 +0000
Dear statalist
I´m using suest to compare coefficients between 2 models (attrition analysis)
In each model there are 11 independent variables.
I´m using panel data with T=2, using pweights and clustering on id.
I´m having problems with including the pweights with suest command:
svyset[pweight=weight]
xi: regress y=b1 + b2x1 + b3x2... [pweight=weight]
est store reg1
xi: regress y=a1 + a2x1 + a3x2... if A(attrition)==0 [pweight=weight]
est store reg2
suest reg1 reg2, vce(cluster id)
test[reg1_mean=reg2_mean]
Stata returns an error:
model reg1 was estimated with pweights, you should re-estimate using iweights
r(322);
Any advice on how to incorporate pweights with suest?
Thanks
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/