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


From   Claire Dye <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: RE: svytabs error
Date   Wed, 21 Aug 2013 08:57:46 -0400

Thank you for your help!  That command worked splendidly.

Claire

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Radwin, David
Sent: Tuesday, August 20, 2013 4:59 PM
To: [email protected]
Subject: st: RE: svytabs error

It seems that -svytabs- (Michael Blasnik, SSC) is over 12 years old and predates the -svy- prefix introduced in Stata 9. That may be the source of the problem.

I suggest trying the more recent -tabout- with the -svy- option (Ian Watson, SSC).

David
--
David Radwin
Senior Research Associate
Education Studies Division
RTI International
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-665-8274

www.rti.org


> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Claire Dye
> Sent: Tuesday, August 20, 2013 12:39 PM
> To: [email protected]
> Subject: st: svytabs error
> 
> 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/

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