Reference-Based Imputation for Longitudinal Clinical Trials with Protocol Deviation
Overview
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
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 4
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 87%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Checks run against github.com/ucl/refbasedmi on 2026-10-21.
No development-tooling practices detected in the upstream repository.
Dependencies
Installing RefBasedMI adds 94 packages (50 with compiled code, 77 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Maintainer since 0.1.0 (2023)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- unarchivedReturned to CRAN2024-09-09
- 0.2.0Latest
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2023-08-25requires archived package 'norm2'
- 0.1.12023-08-21 · diff ↗
- 0.1.02023-04-27
- RR 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
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("RefBasedMI")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-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.