get_restricted_mean: Calcuate Restricted Mean

Description Usage Arguments Value See Also Examples

View source: R/get_restricted_mean.R

Description

Function to calculate restricted mean (RMST) based on method of choice at time t. RMST is defined as the mean rwToT of all subjects in the study population followed up to t, and is simply the area under the rwToT KM curve up to t. The choice of t will be based on level of data maturity. A small risk set size could result in large variation in the estimation and difficulty in interpretation. Pocock et al recommend, in the context of the graphical display of the survival curve, ensuring that the risk set size is at least 10% to 20% of the participants that have not yet experienced the event (10% is used in this function). When sufficient risk size set is not available at t, cure extrapolation based on parametric functions will be applied and the model with the lowest AIC will be used. Please refer Protocol(VEAP 7760) for detailed method description.

Usage

1
get_restricted_mean(df_cohort, t)

Arguments

df_cohort

A dataframe. Minimum required columns:

  • STATUS : Censor status (0 = censored, 1 = event)

  • DD : Number of days between first and last dose

  • START_DATE : First dose date

  • LAST_ACTIVITY_DATE : Last Activity date

t

A numeric value: the time point of interest

Value

Restricted mean at t months using best-fitting parametric function

KM Parametric curve data

See Also

get_analysis, get_treatment_rate

Examples

1
2
# Compute restricted mean for AML data
get_restricted_mean(rwToT_aml, 50)

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