Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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 <thorhild@hotmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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/


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