Type: Package
Title: R-Squared Measure under Accelerated Failure Time (AFT) Models
Version: 0.1.0
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>.
License: GPL-3
Author: Yuyao Wang [cre, aut], Ronghui Xu [aut]
Maintainer: Yuyao Wang <yuw079@ucsd.edu>
Imports: survival
Encoding: UTF-8
NeedsCompilation: no
Packaged: 2023-08-20 01:19:00 UTC; wangyuyao
Repository: CRAN
Date/Publication: 2023-08-21 13:50:05 UTC

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)

mirror server hosted at Truenetwork, Russian Federation.