Statalist


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

st: Date: Mon, 22 Dec 2008 09:31:43 -0500


From   Steven Samuels <[email protected]>
To   [email protected]
Subject   st: Date: Mon, 22 Dec 2008 09:31:43 -0500
Date   Mon, 22 Dec 2008 09:32:09 -0500 (EST)

--
On December 17, Millie.Marston wrote:

I have weighted data but need confidence intervals on the median survival time. I can pick out the median and get it to come out in sts list (see below) but the confidence intervals are suppressed because the data is weighted. Does anyone know how can I get confidence intervals on the median survival with weighted data without assuming a parametric model


stset time [pw=weight],fail(fail)
stsum
local median=r(p50)


You haven't stated whether the data come from a complex survey. Even if probability weights are the only design feature, I suggest that you -svyset- your data. Download -svybsamp2- (resampling for complex survey data) from SSC, and use it to bootstrap -stsum- .

-Steve

Steven Samuels
845-246-0774
18 Cantine's Island
Saugerties, NY 12477 USA
EFax: 208-498-7441



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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