Learn R Programming

aftR2 (version 0.1.0)

aftR2: 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)

Value

The R-squared measure

Arguments

fit.AFT

The fitted AFT model from the survival::survreg function

Examples

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

Run the code above in your browser using DataLab