Description Usage Arguments Details Value Author(s) References See Also Examples
Calculate the R-squared, aka explained randomness, based on the partial likelihood ratio statistic under the Cox model.
1 2 | ##object is the result of a 'coxph'
coxr2(object)
|
object |
The result of a coxph fit |
Calculate the R-squared based on the partial likelihood ratio statistic under the Cox model. Difference in log partial likelihoods between the fitted model and the null model with no regressors is divided by the number of uncensored events, while the existing summary function divides it by the number of total observations.
nevent |
number of uncensored events |
logtest |
partial likelihood ratio test statistics |
rsq |
explained randomness |
Hyeri You, Rounghui Xu
John O'Quigley, Ronghui Xu and Janez Stare, (2005), Explained randomness in proportional hazards models, STATISTICS IN MEDICINE, 24:479-489.
coxph, summary.coxph
1 2 3 4 5 6 7 8 9 |
Loading required package: survival
$nevent
[1] 5
$logtest
test df pvalue
2.4292291 1.0000000 0.1190915
$rsq
rsq
0.3848233
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.