Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: subpopulation weights with stcox


From   Lisa Marie Yarnell <[email protected]>
To   [email protected]
Subject   st: subpopulation weights with stcox
Date   Wed, 25 Dec 2013 21:36:19 -0800

Hi all, I am having some trouble requesting robust standard errors to
account for the survey nature of my data, and in particular, the use
of subpopulation weights (males and females).  I can run the models
without weights, but when I try to apply weights, Stata tells me that
my error type for the variance-covariance matrix is incorrect.  Yet
when I try to request robust standard errors, Stata does not allow it.
 See below.  Does anyone know how to request robust standard errors
for subpopulation Cox regressons in Stata?

Thank you, Lisa


. svy(male): stcox rrisk1_t
invalid vcetype
r(198);

. svy(male): stcox rrisk1_t, vce(robust)
option vce() of stcox is not allowed with the svy prefix
r(198);

. svy: stcox rrisk1_t, vce(robust)
option vce() of stcox is not allowed with the svy prefix
r(198);


-- 
Lisa M. Yarnell, Ph.D.
Postdoctoral Research Associate
Department of Psychology
University of Southern California
3620 McClintock Ave.
Mailroom SGM 501, Office 826B
Los Angeles, CA 90089-1061
Mobile, preferred: (617) 548-2893
Office: x0-0850 or (213) 740-0850
Fax: (213) 746-9082
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index