| Title: | R-Squared Measure under Accelerated Failure Time (AFT) Models |
|---|---|
| Description: | Compute the R-squared measure under the accelerated failure time (AFT) models proposed in Chan et. al. (2018) <doi:10.1080/03610918.2016.1177072>. |
| Authors: | Yuyao Wang [cre, aut], Ronghui Xu [aut] |
| Maintainer: | Yuyao Wang <[email protected]> |
| License: | GPL-3 |
| Version: | 0.1.0 |
| Built: | 2026-06-03 09:49:06 UTC |
| Source: | https://github.com/cran/aftR2 |
Compute the R-squared measure under the accelerated failure time (AFT) models proposed in the Chan et. al (2018) paper (DOI: 10.1080/03610918.2016.1177072).
aftR2(fit.AFT)aftR2(fit.AFT)
fit.AFT |
The fitted AFT model from the survival::survreg function |
The R-squared measure
library(survival) fit.AFT = survreg(Surv(futime, fustat) ~ ecog.ps + rx, ovarian, dist='weibull') aftR2(fit.AFT)library(survival) fit.AFT = survreg(Surv(futime, fustat) ~ ecog.ps + rx, ovarian, dist='weibull') aftR2(fit.AFT)