afttest: Model Diagnostics for AFT Models

CRAN_Status_Badge Total_Downloads Downloads from the RStudio CRAN mirror BuildStatus arXiv

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


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. Thus, it can also be treated as one of the **Rcpp** packages.

Installation of CRAN Version

You can install the released version from CRAN.



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


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.


GNU General Public License (≥ 3)