aftR2 {aftR2}R Documentation

R-squared measure under the accelerated failure time (AFT) models.

Description

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).

Usage

aftR2(fit.AFT)

Arguments

fit.AFT

The fitted AFT model from the survival::survreg function

Value

The R-squared measure

Examples

library(survival)
fit.AFT = survreg(Surv(futime, fustat) ~ ecog.ps + rx, ovarian, dist='weibull')
aftR2(fit.AFT)

[Package aftR2 version 0.1.0 Index]