Statalist


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

Re: st: Re: Problems with survey sub-group analysis using Stata


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: Problems with survey sub-group analysis using Stata
Date   Sat, 28 Jul 2007 11:24:26 -0500

At 10:15 AM 7/28/2007, Ashwin Ananthakrishnan wrote:
I was using the if qualifier.

My command line is:

xi: svy: logistic died i.agecat i.sex i.insurance
i.residence i.income i.liverdisease i.pneumonia
i.heartfailure if diag==1 & kidney==1

I'm not able to use the subpop() option in combination
with logistic.

If I try

xi: svy: logistic died i.agecat i.sex i.insurance
i.residence i.income i.liverdisease i.pneumonia
i.heartfailure, subpop(kidney)

I get the error message "option subpop() not allowed
r(198);"
See -help svy-.  It should be something like

xi: svy, subpop(kidney): logistic died i.agecat i.sex i.insurance
i.residence i.income i.liverdisease i.pneumonia
i.heartfailure


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

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