While-Alive Regression for Composite Endpoints with Cluster-Robust Inference

Provides estimation and inference for while-alive regression models targeting the while-alive loss rate for composite endpoints that include recurrent events and a terminal event. The implementation supports flexible time-varying covariate effects through user-selected time bases, including B-splines, natural splines, M-splines, step functions, truncated linear bases, interval-local bases, and piecewise polynomials. Inference can be performed using cluster-robust variance estimators for cluster-randomized trials, with subject-level (IID) variance as a special case. The package includes prediction and plotting utilities and K-fold cross-validation for selecting basis and tuning parameters. Methodology is based on Fang et al. (2025) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("WAreg")

0.1.0 by Xi Fang, 7 months ago


https://github.com/fancy575/WAreg


Report a bug at https://github.com/fancy575/WAreg/issues


Browse source code at https://github.com/cran/WAreg


Authors: Xi Fang [aut, cre] , Hajime Uno [aut] , Fan Li [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports dplyr, tidyr, tibble, ggplot2, survival, nleqslv, splines, MASS, magrittr, rlang

Suggests splines2, testthat, knitr, rmarkdown


See at CRAN