The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
aftPenCDA is an R package for fitting penalized
accelerated failure time (AFT) models using induced smoothing and
coordinate descent algorithms. Computationally intensive components are
implemented in C++ via Rcpp (RcppArmadillo backend) to ensure
scalability in high-dimensional settings.
The package supports both right-censored survival data and clustered partly interval-censored survival data, and provides flexible variable selection through several penalty functions.
"CF": closed-form plug-in estimator"ZL": perturbation-based estimator based on Zeng and
Lin (2008)You can install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("seonsy/aftPenCDA")aftpen()Fits a penalized AFT model for right-censored survival data.
aftpen_pic()Fits a penalized AFT model for clustered partly interval-censored survival data.
Both functions share the same interface:
aftpen(dt, lambda = 0.1, se = "CF", type = "BAR")
aftpen_pic(dt, lambda = 0.1, se = "CF", type = "BAR")aftpen())dt: a data frame where:
y (observed time)d (event indicator;
1 = event, 0 = censoring)aftpen_pic())dt: a data frame containing:
L, R: interval endpointsdelta: exact observation indicator
(1 = exact, 0 = censored)id: cluster identifierThe method combines induced smoothing with a coordinate descent algorithm. A quadratic approximation is constructed via Cholesky decomposition, leading to a least-squares-type problem
Efficient coordinate-wise updates are then applied under different penalties.
library(aftPenCDA)
set.seed(1)
n <- 100
p <- 5
beta0 <- rep(1, p)
x <- matrix(rnorm(n * p), n, p)
T <- exp(x %*% beta0 + rnorm(n))
C <- rexp(n, rate = exp(-2))
d <- 1 * (T < C)
y <- pmin(T, C)
dt <- data.frame(y = y, d = d, x)
fit <- aftpen(dt, lambda = 0.1, se = "CF", type = "BAR")
fit$beta| Argument | Description |
|---|---|
lambda |
Tuning parameter controlling penalization strength |
type |
"BAR", "LASSO", "ALASSO",
"SCAD" |
se |
Variance estimation method ("CF" or
"ZL") |
r |
SCAD tuning parameter (default: 3.7) |
eps |
Convergence tolerance (default: 1e-8) |
max.iter |
Maximum number of iterations (default: 100) |
Both functions return a list with components:
beta: final penalized coefficient estimateWang, You-Gan, and Yudong Zhao. 2008. “Weighted Rank Regression for Clustered Data Analysis.” Biometrics 64 (1): 39–45.
Dai, L., K. Chen, Z. Sun, Z. Liu, and G. Li. 2018. “Broken Adaptive Ridge Regression and Its Asymptotic Properties.” Journal of Multivariate Analysis 168: 334–351.
Zeng, Donglin, and D. Y. Lin. 2008. “Efficient Resampling Methods for Nonsmooth Estimating Functions.” Biostatistics 9 (2): 355–363.
This package is under development. Functionality and interfaces may change in future versions.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.