Other packages > Find by keyword >

WAreg  

While-Alive Regression for Composite Endpoints with Cluster-Robust Inference
View on CRAN: Click here


Download and install WAreg package within the R console
Install from CRAN:
install.packages("WAreg")

Install from Github:
library("remotes")
install_github("cran/WAreg")

Install by package version:
library("remotes")
install_version("WAreg", "0.1.0")



Attach the package and use:
library("WAreg")
Maintained by
Xi Fang
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2026-03-06
Latest Update: 2026-03-06
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>.
How to cite:
Xi Fang (2026). WAreg: While-Alive Regression for Composite Endpoints with Cluster-Robust Inference. R package version 0.1.0, https://cran.r-project.org/web/packages/WAreg. Accessed 24 Oct. 2026.
Previous versions and publish date:
No previous versions
Other packages that cited WAreg R package
View WAreg citation profile
Other R packages that WAreg depends, imports, suggests or enhances
Complete documentation for WAreg
Functions, R codes and Examples using the WAreg R package
Full WAreg package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
FDRsampsize  
Compute Sample Size that Meets Requirements for Average Power and FDR
Defines a collection of functions to compute average power and sample size for studies that use the ...
Download / Learn more Package Citations See dependency  
forecastHybrid  
Convenient Functions for Ensemble Time Series Forecasts
Convenient functions for ensemble forecasts in R combining approaches from the 'forecast' package. ...
Download / Learn more Package Citations See dependency  
givitiR  
The GiViTI Calibration Test and Belt
Functions to assess the calibration of logistic regression models with the GiViTI (Gruppo Italiano p ...
Download / Learn more Package Citations See dependency  
magicfor  
Magic Functions to Obtain Results from for Loops
Magic functions to obtain results from for loops. ...
Download / Learn more Package Citations See dependency  
climwin  
Climate Window Analysis
Contains functions to detect and visualise periods of climate sensitivity (climate windows) for a g ...
Download / Learn more Package Citations See dependency  

29,080

R Packages

247,686

Dependencies

77,281

Author Associations

29,081

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA