Description Usage Arguments Value See Also Examples
View source: R/fitAndTestSurvival.R
Tests, if there are differences between groups for survival curves estimating for all risks separately (treating other events as censoring).
1 | testSurvival(time, risk, group, cens = 0, rho = 0)
|
time |
vector with times of the first event or follow-up, must be numeric. |
risk |
vector with type of event, can be numeric or factor/character. |
group |
vector with group variable, can be numeric or factor/character. |
cens |
value of 'risk' indicating censored observation (default 0). |
rho |
rho parameter from Fleming-Harrington Test. |
a data.frame containing p-values of Fleming-Harrington Test for each risk.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.