Depois de calcular um modelo Kaplan Meier, obtenho a km_fit
lista abaixo. Como posso extrair valores de intervalo de confiança de 95% agora?
# Plot Kaplan-Meier curves
sg1_survival <- Surv(
time = sg1$`Time from breast cancer diagnosis to bone metastasis (months) (NA = unknown)`,
event = sg1$`status (=1 as all pts have bone metastasis and BC)`
)
km_fit <- survfit(sg1_survival ~ sg1$`Molecular type (0=hr+her2+, 1=hr+her2-, 2=hr-her2+, 3=TNBC)`, data = sg1)
# Calculate 95% confidence intervals? fails with "no applicable method"
ci <- confint(km_fit, level = 0.95)
Por favor, experimente o pacote de vassoura abaixo e verifique
conf.high & conf.low
Está tudo dentro
km_fit
.