Bookmark and Share

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: svytabs error


From   Claire Dye <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: svytabs error
Date   Tue, 20 Aug 2013 15:38:38 -0400

Hello,

I am having a problem using the svytabs command with Stata 12.1 and was wondering if anyone has any suggestions.  In particular, I am setting up the data using the svyset command.  I then run the svytabs command and get an error message that "strata() required".  The strata variable I am using definitely has information in it, and I'm not seeing an option for strata() in the help documentation.  Is it because the command is old and no longer works? If so, is there a newer alternative?  Any help you could give me would be greatly appreciated.  The code I am using is below.

svyset all_psu [pweight=respwt], strata(all_strata5)

svytabs DEMOG_XPG1_empl DEMOG_XHHsmoke DEMOG_XRhealth_poor DEMOG_XRmental_poor, by(Sampleinfo_FieldRegions) ///
saving(N:\...DescripChipest10_130815.log) replace

______________________________
Claire Dye


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index