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: suest after svy:clogit


From   Klaus Nowotny <klaus.nowotny@sbg.ac.at>
To   statalist@hsphsun2.harvard.edu
Subject   st: suest after svy:clogit
Date   Thu, 16 May 2013 18:31:25 +0200

Dear statalist users,

I am having troubles using suest to test the equality of coefficients across two groups after svy:clogit. My survey data is set up as follows:

svyset id [iw=weight]

where "id" identifies a specific combination of individual characteristics and "weight" is the weight attached to the observation. I then estimate the model for two subgroups:

svy, subpop(if group==1): clogit choice x1 x2, group(id)
est sto group1
svy, subpop(if group==2): clogit choice x1 x2, group(id)
est sto group2

To test for the equality of the coefficients of x1 across the two groups I follow the Stata reference manual for suest and enter

suest group1 group2

but Stata returns "r(198); option cluster() is not allowed with svy results" although I never entered the cluster option anywhere. The same occurs if I try the alternative procedure suggested in the reference manual:

clogit choice x1 x2 if group==1 [iw=weight], group(id)
est sto group1
clogit choice x1 x2 if group==2 [iw=weight], group(id)
suest group1 group2, svy

Why do I keep getting this error message? Any help would be greatly appreciated!

Thanks,
Klaus

--
Klaus Nowotny
University of Salzburg

*
*   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