The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » Calculating CI for median survival time (confidence intervals for weighted median survival time)
Re: Calculating CI for median survival time [message #18222 is a reply to message #18043] Thu, 17 October 2019 10:26 Go to previous messageGo to previous message
Liz-DHS
Messages: 1516
Registered: February 2013
Senior Member
A response from Dr. Ruilin Ren, Senior Sampler:
Quote:
Thanks for the post. If you use any of the major statistical software such as SAS, SPSS and STATA, you should be able to calculate the sampling error and the confidence interval of median using the complex survey module. In DHS, we use SAS. If you use SAS, you can use the codes:

PROC SURVEYMEANS median DATA=your data;
VAR XXX (name of your edited survival time variable);
WEIGHT YYY (name of your weight variable);
STRATA ZZZ (the stratification variable);
CLUSTER V001;
RUN;

It is worth to note that SAS calculates a true interpolated median, while SPSS and STATA calculate the median value of the variable, not an interpolated median.
Hope this helps.
Ruilin Ren

 
Read Message
Read Message
Read Message
Previous Topic: Survey Sampling weights
Next Topic: NUMBER OF YEARS IN CURRENT RESIDENCE
Goto Forum:
  


Current Time: Fri Dec 13 01:32:49 Coordinated Universal Time 2024