Skip to content

RefBasedMI

0.2.0

Reference-Based Imputation for Longitudinal Clinical Trials with Protocol Deviation

0packages depend
3Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Matteo QuartagnoFirst published 2023-04-273 releasesCRAN page ↗GitHub ↗

Imputation of missing numerical outcomes for a longitudinal trial with protocol deviations. The package uses distinct treatment arm-based assumptions for the unobserved data, following the general algorithm of Carpenter, Roger, and Kenward (2013) doi:10.1080/10543406.2013.834911, and the causal model of White, Royes and Best (2020) doi:10.1080/10543406.2019.1684308. Sensitivity analyses to departures from these assumptions can be done by the Delta method of Roger. The program uses the same algorithm as the 'mimix' 'Stata' package written by Suzie Cro, with additional coding for the causal model and delta method. The reference-based methods are jump to reference (J2R), copy increments in reference (CIR), copy reference (CR), and the causal model, all of which must specify the reference treatment arm. Other methods are missing at random (MAR) and the last mean carried forward (LMCF). Individual-specific imputation methods (and their reference groups) can be specified.

Install

Health

CRAN checks
13OK
Slowest check: 3.6 min · r-devel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-25
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

3K
CRAN downloads in the past year
Rank #17,204 · ~8/day · ~254/mo
Daily download trend is not available in this view yet.
13730 days
64090 days
3K1 year
Compare downloads with other packages →
Also on378 r2u33 autocran

Repository

Repository
5Stars
4Forks
3Open issues
0Open PRs
1Releases
590Commits
5Contributors
License GPL-3.0 · 590 commits · Last activity 2024-09-04 · 0% stars, 30d

Stars over time

2025-04-21 · 42026-07-07 · 5

Repository practices

Upstream repositoryBeta

Checks run against github.com/ucl/refbasedmi on 2026-08-23.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Maintainer · added in 0.2.0
Authors (1)
Listed in earlier versions (1)
no longer listed · 0.1.1
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.0Latest
    2024-09-09 · current release · diff ↗
  • unarchivedReturned to CRAN
    2024-09-09
  • R
    R 4.4.0 released · 2024-04-24
  • archivedRemoved from CRAN
    2023-08-25
    requires archived package 'norm2'
  • 0.1.1
    2023-08-21 · diff ↗
  • 0.1.0
    2023-04-27
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-04-27
Total releases
3 / 3 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
14 KB / 3 files
Download size
495 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("RefBasedMI")
Quartagno, M., & McGrath, K. (2024). RefBasedMI: Reference-Based Imputation for Longitudinal Clinical Trials with Protocol Deviation (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.RefBasedMI

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 RefBasedMI version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-08-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-23, 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