Skip to content

RobinCar2

0.2.4Package record

ROBust INference for Covariate Adjustment in Randomized Clinical Trials

0packages depend
6.1Kdownloads / year
99.6%test coverage
13/13flavors OK

Overview

About
Maintained by Liming LiCRAN page ↗GitHub ↗Issues ↗Declared funders: AstraZeneca plc, Eli Lilly and Company and 5 more

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.

Changes in 0.2.4

New Features

  • The new surv_control argument in robin_surv() allows to fine-control the root finding algorithm used for the hazard ratio estimation.

Bug Fixes

  • Previously robin_surv() gave small numerical differences to survival::coxph() for the hazard ratio estimate. This is now fixed.

Misc

  • Adapted a unit test to a change in stats::model.frame.glm() in R-devel, which now enforces the factor levels recorded in the model fit, consistent with stats::model.frame.lm(). As a consequence, predict_counterfactual() requires the factor levels of the treatment variable in data to match those of fit. Previously, mismatched levels were silently accepted for glm fits; this restriction has always applied to lm fits.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.1 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.2.4
README· In the repository, left out of the releaseVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.2.4Citation fileNo

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

6.1K
CRAN downloads in the past year
Rank #8,246 · ~17/day · ~505/mo
Daily download trend is not available in this view yet.
43430 days
1.1K90 days
6.1K1 year
Compare downloads with other packages →
Also on110 r2u7 autocran

Repository

14Stars
4Forks
4Open issues
2Open PRs
14Releases
57Commits
7Commit identities
57 commits · Last activity 2026-09-22 · 0% stars, 30d · Default branch at 0.2.4.9000, ahead of CRAN 0.2.4 (checked 2026-10-11) · Discussions: 1 post
Responsiveness
How these are sampled
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

2025-07-28 · 132026-07-07 · 14
PracticesBeta

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.

Continuous integration (1)
GitHub Actions
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-22

Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
Automation and maintenance (1)
pre-commit
Lint, format, editor (3)
lintrAirRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-04-30
    Seen in the repository: .github/copilot-instructions.md
  • Claude Codefirst seen 2026-07-02
    Pull request it wrote: opened by a project member
    Commits: at least 1 crediting it in the message
Models named in its commits
  • Claude Opus 4.81 commit · Jul 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing RobinCar2 adds 5 packages (3 with compiled code, 2.4 MB of source tarballs). Heaviest: sandwich 1.4 MB, zoo 675 KB, checkmate 247 KB.

Depends (1)
R >= 3.6
Imports (7)
checkmatenumDerivMASSsandwichstatssurvivalutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (14)
Author, Maintainer since 0.1.1 (2025)
Author · added in 0.2.0
Author
Author
Author
Contributor
Copyright holder, Funder
Copyright holder, Funder
Copyright holder, Funder
Copyright holder, Funder
Copyright holder, Funder
Copyright holder, Funder · added in 0.2.1
Copyright holder, Funder
Releases (6)

Pick two releases to compare their code metrics.

  • 0.2.4Latest
    record
    2026-08-22 · current release · diff ↗ ·
    added 1 export
    surv_control
  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.3
    record
    2026-01-09 · diff ↗
  • 0.2.2
    record
    2026-01-09 · diff ↗
  • 0.2.1
    record
    2025-09-11 · diff ↗
  • 0.2.0
    record
    2025-09-09 · diff ↗ ·
    removed 2 exports
    h_jac_ratio, h_ratio
    added 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
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.1
    record
    2025-04-03
  • R
    R 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")
Li, L., AstraZeneca plc, Eli Lilly and Company, F. Hoffmann-La Roche AG, Gilead Sciences, Inc., Merck Sharp & Dohme, Inc., Novartis Pharma AG, The University of Washington, Bannick, M., Chen, G., Sabanes Bove, D., Xi, D., Ye, T., & Yi, Y. (2026). RobinCar2: ROBust INference for Covariate Adjustment in Randomized Clinical Trials (Version 0.2.4) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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