Hello,
I am trying to collect the results of Kaplan-Meier curves with bootstrapped confidence intervals using the command collect.
I tried the following code to extract the estimates of the coefficient, the bias and the bootstrapped CIs (line: collect layout (colname) (result[b_bs bias ci_bc]))
Then, I aim to export them with putexcel.
What I obtain is a table with the coefficient and the bias, but not the confidence intervals.
You can see it below.
Bootstrap Estimated
estimates biases
S1 1.00 | 0.00
S2 0.97 | 0.00
S3 0.87 | -0.00
S4 0.78 | -0.00
S5 0.70 | -0.00
S6 0.65 | 0.01
S7 0.60 | 0.01
S8 0.54 | 0.01
S9 0.46 | 0.01
S10 0.44 | 0.01
I would appreciate if you could help me obtain the confidence intervals. Thank you very much. Lydia
I am trying to collect the results of Kaplan-Meier curves with bootstrapped confidence intervals using the command collect.
I tried the following code to extract the estimates of the coefficient, the bias and the bootstrapped CIs (line: collect layout (colname) (result[b_bs bias ci_bc]))
Then, I aim to export them with putexcel.
Code:
preserve stset age2 if $missing [pw=what_last_nonmissing] , failure(mover) id(pidp) enter(age) exit(time .) keep if _st==1 collect clear collect: bootstrap S1 = r(S1) S2 = r(S2) S3 = r(S3) S4 = r(S4) S5 = r(S5) S6 = r(S6) S7 = r(S7) S8 = r(S8) S9 = r(S9) S10 = r(S10), reps(10): get_survival collect style cell, nformat(%5.2f) cidelimiter(",") collect layout (colname) (result[b_bs bias ci_bc]) collect style header colname, level(value) collect preview restore
What I obtain is a table with the coefficient and the bias, but not the confidence intervals.
You can see it below.
Bootstrap Estimated
estimates biases
S1 1.00 | 0.00
S2 0.97 | 0.00
S3 0.87 | -0.00
S4 0.78 | -0.00
S5 0.70 | -0.00
S6 0.65 | 0.01
S7 0.60 | 0.01
S8 0.54 | 0.01
S9 0.46 | 0.01
S10 0.44 | 0.01
I would appreciate if you could help me obtain the confidence intervals. Thank you very much. Lydia
Comment