Learn R Programming

afttest: Model Diagnostics for AFT Models

The R package afttest is intended to be a user-friendly supplementary package to the base package aftgee.

Features

In addition to the R interface, afttest provides a C++ header-only library integrated with Rcpp, which allows the construction of spline basis functions directly in C++ with the help of Rcpp and RcppArmadillo.

Installation of CRAN Version

You can install the released version from CRAN.

install.packages("afttest")

Development

The latest version of the package is under development at GitHub. If it is able to pass the automated package checks, one may install it by

if (!require(devtools)) install.packages("devtools")
devtools::install_github("WoojungBae/afttest")

Performance

The implementation of the main functions has been written in C++ with the help of the Rcpp and RcppArmadillo packages. The computational performance has thus been boosted.

Reference

Bae, W., Choi, D., Yan, J., Kang, S. (2025). afttest: model diagnostics for semiparametric accelerated failure time models in R. arXiv, arxiv.org/abs/2511.09823.

Choi, D., Bae, W., Yan, J., and Kang, S. (2024). A general model-checking procedure for semiparametric accelerated failure time models. Statistics and Computing, 34(3) 117

Bae, W., Choi, D., Yan, J., Kang, S. (2022). afttest: Model Diagnostics for Accelerated Failure Time Models. CRAN, CRAN.R-project.org/package=afttest.

Chiou, S., Kang, S., and Yan, J. (2014). Fitting accelerated failure time model in routine survival analysis with R package aftgee. Journal of Statistical Software, 61(11): 1--23.

Copy Link

Version

Install

install.packages('afttest')

Monthly Downloads

332

Version

4.5.2.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

WooJung Bae

Last Published

February 15th, 2026

Functions in afttest (4.5.2.1)

export_Surv

Surv function imported from survival
afttest

Model Diagnostics for Semiparametric AFT Models
plot.afttest

plot.afttest
summary.afttest

summary.afttest
print.afttest

print.afttest