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

[no subject]



Now I am trying to replace the 1 value with
. replace stratum  =  2 in ....

I guess I have to list the obsevations....1, 530, 591 etc etc to
convert

I hope this works.

thanks for your assistance

>>> act2@case.edu 8/23/2004 5:41:22 PM >>>
Hi Marisa,

An explanation of this problem is on the Stata Web site:
http://www.stata.com/support/faqs/stat/stratum.html 

You might try collapsing PSUs and strata so every stratum has at least
two
PSUs, i.e., use -svydes- to identify the problematic PSUs/strata, then
manually create new PSU/strata variables.

Alternatively, you might try -idonepsu-. (To find it in net-aware
Stata,
type -webseek idonepsu-.)

Regards,
Alex

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu 
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Marisa
Wilson
Sent: Monday, August 23, 2004 3:34 PM
To: statalist@hsphsun2.harvard.edu 
Subject: st: STATA and NHIS data - Elementary Question

I am relatively new STATA user so forgive the naivete of my question to
the
August users group.

I using the 2002 NHIS data and STATA 7 to do logistic regression
modeling
for my dissertation analysis.  I need to use svylogit and svyset for
the
weight, strata and psu variables.  However, I get a
r(460) error due to stratum with only one PSU encountered.  In svydes,
I do
have several psus with entires of 1.

Is there any way around this?



Marisa L. Wilson  DNSc(c), MHSc, RN
Clinical Systems Project Leader
JHMCIS
office 410-614-1151
pager 410-283-2605
cell     443-540-6947
*
*   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/
*
*   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