ROBust INference for Covariate Adjustment in Randomized Clinical Trials
Overview
Performs robust estimation and inference when using covariate adjustment and/or covariate-adaptive randomization in randomized controlled trials. This package is trimmed to reduce the dependencies and validated to be used across industry. See "FDA's final guidance on covariate adjustment"https://www.regulations.gov/docket/FDA-2019-D-0934, Tsiatis (2008) doi:10.1002/sim.3113, Bugni et al. (2018) doi:10.1080/01621459.2017.1375934, Ye, Shao, Yi, and Zhao (2023)doi:10.1080/01621459.2022.2049278, Ye, Shao, and Yi (2022)doi:10.1093/biomet/asab015, Rosenblum and van der Laan (2010)doi:10.2202/1557-4679.1138, Wang et al. (2021)doi:10.1080/01621459.2021.1981338, Ye, Bannick, Yi, and Shao (2023)doi:10.1080/24754269.2023.2205802, and Bannick, Shao, Liu, Du, Yi, and Ye (2024)doi:10.48550/arXiv.2306.10213.
New Features
- The new
surv_controlargument inrobin_surv()allows to fine-control the root finding algorithm used for the hazard ratio estimation.
Bug Fixes
- Previously
robin_surv()gave small numerical differences tosurvival::coxph()for the hazard ratio estimate. This is now fixed.
Misc
- Adapted a unit test to a change in
stats::model.frame.glm()inR-devel, which now enforces the factor levels recorded in the model fit, consistent withstats::model.frame.lm(). As a consequence,predict_counterfactual()requires the factor levels of the treatment variable indatato match those offit. Previously, mismatched levels were silently accepted forglmfits; this restriction has always applied tolmfits.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-26
- ERROR12 OK, 1 ERROR2026-08-08
- OK13 OK2026-08-05
Show 2 earlier changesHide 2 earlier changes
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 42 (27 internal)includes a package overview page
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 45%
- Documented parameters
- 96%
- Return-value docs
- 91%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 95%
- Median days to close, 50 most recently updated closed issues
- 23
- Median days to close, 50 most recently updated closed PRs
- 5
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/openpharma/robincar2 on 2026-10-11.
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-04-30Seen in the repository: .github/copilot-instructions.md
- Claude Codefirst seen 2026-07-02Pull request it wrote: opened by a project memberCommits: at least 1 crediting it in the message
- Claude Opus 4.81 commit · Jul 2026
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.4Latest
- RR 4.6.0 released · 2026-04-24
- 0.2.32026-01-09 · diff ↗
- 0.2.22026-01-09 · diff ↗
- 0.2.12025-09-11 · diff ↗
- 0.2.02025-09-09 · diff ↗ ·
removed 2 exports
h_jac_ratio, h_ratioadded 8 exports
h_jac_log_odds_ratio, h_jac_log_risk_ratio, h_jac_risk_ratio, h_log_odds_ratio, h_log_risk_ratio, h_risk_ratio, robin_surv, table - RR 4.5.0 released · 2025-04-11
- 0.1.12025-04-03
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2025-04-03
- Total releases
- 6 / 1 yrs
- License
- Apache License 2.0 OSI
- Minimum R
- ≥ 3.6
- Bundled data
- 13 KB / 2 files
- Download size
- 87 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("RobinCar2")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.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.