Description Usage Arguments Value See Also Examples
View source: R/get_treatment_rate.R
Uses the survival fit object to compute the estimation of treatment/survival at time point of interest using Kaplan–Meier product-limit estimate.
1 | get_treatment_rate(fit_km, t)
|
fit_km |
A |
t |
A numeric value: the time point of interest on the curve |
Number of subjects at risk and the estimation of event at time t
with Lower and Upper CI.
1 2 3 | require(survival)
fit_km <- survfit(Surv(time, status) ~ 1, data = aml)
get_treatment_rate(fit_km, 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.