Hello,
I am estimating the KM failure function at several time points across different survey periods. I would like to obtain 95% confidence intervals but understand the “ci” option is unavailable because my data are weighted (my code is below). Is there an alternative solution? I am using Stata 15.
Thank you,
Pina
I am estimating the KM failure function at several time points across different survey periods. I would like to obtain 95% confidence intervals but understand the “ci” option is unavailable because my data are weighted (my code is below). Is there an alternative solution? I am using Stata 15.
Code:
stset time [pweight = weightvar], failure(event==1) exit(failure) id(id) sort survey sts list if age==1, by(survey) at(10 11 12 13 14 15 16 17 18 19 20 21 22 23 24) failure
Pina