Skip to content

WAreg

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

v0.1.0 · Mar 6, 2026 · GPL-3

Description

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) <doi:10.1093/biostatistics/kxaf047>.

Downloads

23

Last 30 days

23329th

23

Last 90 days

23

Last year

CRAN Check Status

9 OK
Show all 9 flavors
Flavor Status
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-windows-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
Check details (9 non-OK)
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-windows-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            

Check History

OK 9 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026

Dependency Network

Dependencies Reverse dependencies dplyr tidyr tibble ggplot2 survival nleqslv MASS magrittr rlang WAreg

Version History

new 0.1.0 Mar 10, 2026