rbmi
) The rbmi
package is used for the imputation of missing data in clinical trials with continuous multivariate normal longitudinal outcomes.
It supports imputation under a missing at random (MAR) assumption, reference-based imputation methods,
and delta adjustments (as required for sensitivity analysis such as tipping point analyses). The package implements both Bayesian and
approximate Bayesian multiple imputation combined with Rubin's rules for inference, and frequentist conditional mean imputation combined with
(jackknife or bootstrap) resampling.
The package can be installed directly from CRAN via:
install.packages("rbmi")
Note that the usage of Bayesian multiple imputation requires the installation of the suggested package rstan.
install.packages("rstan")
The package is designed around its 4 core functions:
draws()
- Fits multiple imputation modelsimpute()
- Imputes multiple datasetsanalyse()
- Analyses multiple datasetspool()
- Pools multiple results into a single statisticThe basic usage of these core functions is described in the quickstart vignette:
vignette(topic = "quickstart", package = "rbmi")
For clarification on the current validation status of rbmi
please see the FAQ vignette.
For any help with regards to using the package or if you find a bug please create a GitHub issue
install.packages('rbmi')
analysis
objectdraws
objectdata.frame
into a design matrixrstan
existsdata.frame
rowsstanfit
objectimputation_list_single()
objects to an imputation_list_df()
object
(i.e. a list of imputation_df()
objects's)imputation_df
objectimputation_single
objectimputation_singles()
grouped by a single subjid IDstanfit
objectdata.frame
templaterbmi
ready clustersample_list
objectimputation
objectanalysis
objectimputation_single()
into multiple imputation_df()
's by IDsample_single
classdata.frame
analysis
objectsdraws
objectsample_single
objectis_mar
for a given subjectvars
draws
objectstan_data
objectsimul_pars
objectsample_list
object