Skip to content

WAreg

0.1.0Package record

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

0packages depend
1.5Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Install

Health

CRAN checks
13OK
Slowest check: 2.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 2 earlier changesHide 2 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK10 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.0
READMENoVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
8 (1 internal)
Examples that run
33%2 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
33%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.5K
CRAN downloads in the past year
Rank #23,095 · ~4/day · ~124/mo
Daily download trend is not available in this view yet.
24530 days
57090 days
1.5K1 year
Compare downloads with other packages →
Also on44 r2u2 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2025-11-09
Responsiveness
not measured
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/fancy575/wareg on 2026-10-22.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing WAreg adds 30 packages (16 with compiled code, 28 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, isoband 1.5 MB.

Depends (1)
R >= 4.1
Imports (10)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 0.1.0 (2026)
Author
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-03-06 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-03-06
Total releases
1 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1
Bundled data
241 KB / 2 files
Download size
262 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("WAreg")
Fang, X., Li, F., & Uno, H. (2026). WAreg: While-Alive Regression for Composite Endpoints with Cluster-Robust Inference (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.WAreg

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for WAreg version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy