Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: svymean


From   "Hsu, Lucy" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: svymean
Date   Thu, 24 Apr 2003 15:34:44 -0400

Hi,

For V8SE, why sometime it works with separate statements for setting
up the sampling parameters (method 1) instead of combining all 
the sampling parameters in one statement (method 2)?  Thanks a lot,


Method 1:
svyset  strata  pstrhwr 
svyset  psu     ppsuhrx 
svyset  pweight wtper2 
svymean drvisnx hspstyn erusenx, subpop(sitesamp) obs size deft 


Method 2:
svyset  [pweight=wtper2], strata(pstrhwr) psu(ppsuhrx)
svymean drvisnx hspstyn erusenx, subpop(sitesamp) obs size deft


Lucy
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index