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

st: Re: svy commands and missing cases


From   "R.E. De Hoyos" <redeho2@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: svy commands and missing cases
Date   Thu, 10 Jun 2004 15:43:34 +0100

Robert,

You can also try to run:

logit y x1 x2 x3 [pw=expansion_factor]

and see how many observations are being included, then

logit y x1 x2 x3, cluster(PSU)

logit y x1 x2 x3 [pw=expansion_factor], cluster(PSU)

where PSU are your primary sample units. Again you will check the number of
observations. This will help you identify if the missing values are coming
from expansion factors, PSUs or strata.

Rafa


----- Original Message -----
From: "Owens, Douglas Hamilton" <dho@neo.tamu.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Thursday, June 10, 2004 12:55 AM
Subject: st: svy commands and missing cases


> how about using e(sample) to identify the obeservations dropped from the
> svylogit?  Is there something odd about the psu, strata, or weight in
those
> observations? Perhaps -svydes- might report something useful.
>
>
> > Hey Stata listers,
> >
> > I hope you can help me.  I am stumped on what seems to be an easy
problem to
> > fix.
> >
> > I am trying to estimate a logit model using the survey commands on a
sample
> > of 9,966.  When I estimate the model:
> >
> > svylogit y x1 x2 x3
> >
> > Stata lists 9,559 observations
> >
> > When I estimate the model without the survey commands:
> >
> > logit y x1 x2 x3
> >
> > Stata lists 9,966 observations, which is the correct number of
observations.
> >   How can I get the svy procedures to estimate the model on ALL
> > observations?
> >
> > Thoughts, anyone?
>
>
> *
> *   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/
>
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index