Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: problem with svyset and svygei


From   ESamman <[email protected]>
To   [email protected]
Subject   Re: st: problem with svyset and svygei
Date   Wed, 26 Jul 2006 13:22:54 -0700 (PDT)

Thanks for your help.
Emma

--- "Jeff Pitblado, StataCorp LP"
<[email protected]> wrote:

> Emma <[email protected]> is using -svygei- with
> Stata 9:
> 
> > I have household survey data set using svyset (v.
> > 9.2). when i try to run the "svygei"  utility, i
> > receive this error message:
> > 
> > "data not set up for the old survey estimation
> > commands; use svyset under version control or use
> the
> > new svy prefix"
> > 
> > as far as i'm aware, my data are set up using the
> > newest svyset commands. 
> > 
> > i'd be grateful for any advice as to how I could
> solve
> > this problem.
> 
> Emma can re-svyset- her data under version 8.2
> control to get -svygei- to
> recognize the proper survey design settings.
> 
> Assuming the sampling weight variable is -sweight-,
> the stratum id variable is
> -stratid-, and the PSU id variable is -psuid-, Emma
> can call -svyset- under
> versin 8.2 control by putting the following line in
> her do-file:
> 
> 	version 8.2: svyset [pw=sweight], strata(stratid)
> psu(psuid)
> 
> --Jeff
> [email protected]
> *
> *   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/
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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