surv_fitness: Survival fitness function using the Restricted Mean Survival...

Description Usage Arguments Value Author(s) References Examples

View source: R/galgo.R

Description

Survival fitness function using the Restricted Mean Survival Time (RMST) of each group as proposed by Dehbi & Royston et al. (2017).

Usage

1
surv_fitness(OS, clustclass, period)

Arguments

OS

a survival object with survival data of the patients evaluated

clustclass

a numeric vector with the group label for each patient

period

a number representing the period of time to evaluate in the RMST calculation

Value

The function computes the Harmonic mean of the differences between Restricted Mean Survival Time (RMST) of consecutive survival curves multiplied by the number of comparisons.

Author(s)

Martin E Guerrero-Gimenez, mguerrero@mendoza-conicet.gob.ar

References

Dehbi Hakim-Moulay, Royston Patrick, Hackshaw Allan. Life expectancy difference and life expectancy ratio: two measures of treatment effects in randomized trials with non-proportional hazards BMJ 2017; 357 :j2250 https://www.bmj.com/content/357/bmj.j2250

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# load example dataset
library(breastCancerTRANSBIG)
library(Biobase)
data(transbig)
Train <- transbig
rm(transbig)

clinical <- pData(Train)
OS <- survival::Surv(time = clinical$t.rfs, event = clinical$e.rfs)

surv_fitness(OS, clustclass = clinical$grade, period = 3650)

harpomaxx/galgoR-package documentation built on Oct. 26, 2020, 7:05 a.m.