Description Usage Arguments Value See Also Examples
View source: R/get_restricted_mean.R
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.
1 | get_restricted_mean(df_cohort, t)
|
df_cohort |
A dataframe. Minimum required columns:
|
t |
A numeric value: the time point of interest |
Restricted mean at t months using best-fitting parametric function
KM Parametric curve data
get_analysis
, get_treatment_rate
1 2 | # Compute restricted mean for AML data
get_restricted_mean(rwToT_aml, 50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.