Package 'aftR2'

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: 2025-02-14 05:11:31 UTC
Source: https://github.com/cran/aftR2

Help Index


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)