Package: RefBasedMI Title: Reference-Based Imputation for Longitudinal Clinical Trials with Protocol Deviation Version: 0.2.0 Authors@R: c(person(given = "Kevin", family = "McGrath", role = "aut", email = "kkevinmcgrath@yahoo.co.uk"), person(given = "Matteo", family = "Quartagno", role = "cre", email = "m.quartagno@ucl.ac.uk")) Description: 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) , and the causal model of White, Royes and Best (2020) . 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. URL: https://github.com/UCL/RefBasedMI License: GPL-3 Encoding: UTF-8 LazyData: true Imports: data.table, Hmisc, mice, pastecs, assertthat Depends: R (>= 3.5.0) NeedsCompilation: yes Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 Config/pak/sysreqs: cmake make libicu-dev libuv1-dev libx11-dev zlib1g-dev Repository: https://ucl.r-universe.dev Date/Publication: 2024-09-04 12:31:31 UTC RemoteUrl: https://github.com/ucl/refbasedmi RemoteRef: HEAD RemoteSha: 316380971c5218ede52121719776eec223129d55 Packaged: 2026-06-20 10:22:00 UTC; root Author: Kevin McGrath [aut], Matteo Quartagno [cre] Maintainer: Matteo Quartagno