grhoTests | R Documentation |
Runs the log-rank test and Breslow test to test for difference between two or more survival curves.
grhoTests(formula, data, digits = 4)
formula |
formula expression of the form |
data |
data frame where variables from |
digits |
number of significant digits to retain |
The log-rank test corresponds to rho = 0
and the Breslow test
corresponds to rho = 1
in survdiff
. This function emulates the
"Overall Comparisons" table output from SPSS.
The Chi-Square statistic, degrees of freedom, and p-value are given for both G-rho tests.
Derek Chiu
library(survival)
grhoTests(Surv(futime, fustat) ~ rx, data = ovarian)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.