powered by
Tests, if there are differences between groups for survival curves estimating for all risks separately (treating other events as censoring).
testSurvival(time, risk, group, cens = 0, rho = 0)
vector with times of the first event or follow-up, must be numeric.
vector with type of event, can be numeric or factor/character.
vector with group variable, can be numeric or factor/character.
value of 'risk' indicating censored observation (default 0).
rho parameter from Fleming-Harrington Test.
a data.frame containing p-values of Fleming-Harrington Test for each risk.
survdiff
# NOT RUN { testSurvival(time = LUAD$time, risk = LUAD$event, group = LUAD$gender, cens = "alive", rho = 0) # }
Run the code above in your browser using DataLab