get_treatment_rate: Get Treatment Rate

Description Usage Arguments Value See Also Examples

View source: R/get_treatment_rate.R

Description

Uses the survival fit object to compute the estimation of treatment/survival at time point of interest using Kaplan–Meier product-limit estimate.

Usage

1

Arguments

fit_km

A survfit object.

t

A numeric value: the time point of interest on the curve

Value

Number of subjects at risk and the estimation of event at time t with Lower and Upper CI.

See Also

survfit, summary.survfit

Examples

1
2
3
require(survival)
fit_km <- survfit(Surv(time, status) ~ 1, data = aml)
get_treatment_rate(fit_km, 20)

sutsabs/rwToT2 documentation built on Feb. 18, 2022, 2:30 a.m.