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>.
| Version: | 0.1.0 |
| Depends: | R (≥ 4.1) |
| Imports: | dplyr, tidyr, tibble, ggplot2, survival, nleqslv, splines, MASS, magrittr, rlang |
| Suggests: | splines2, testthat (≥ 3.0.0), knitr, rmarkdown |
| Published: | 2026-03-06 |
| DOI: | 10.32614/CRAN.package.WAreg |
| Author: | Xi Fang [aut, cre], Hajime Uno [aut], Fan Li [aut] |
| Maintainer: | Xi Fang <x.fang at yale.edu> |
| BugReports: | https://github.com/fancy575/WAreg/issues |
| License: | GPL-3 |
| URL: | https://github.com/fancy575/WAreg |
| NeedsCompilation: | no |
| CRAN checks: | WAreg results |
| Reference manual: | WAreg.html , WAreg.pdf |
| Package source: | WAreg_0.1.0.tar.gz |
| Windows binaries: | r-devel: WAreg_0.1.0.zip, r-release: WAreg_0.1.0.zip, r-oldrel: WAreg_0.1.0.zip |
| macOS binaries: | r-release (arm64): WAreg_0.1.0.tgz, r-oldrel (arm64): WAreg_0.1.0.tgz, r-release (x86_64): WAreg_0.1.0.tgz, r-oldrel (x86_64): WAreg_0.1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=WAreg to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.