EditImputeCont: Simultaneous Edit-Imputation for Continuous Microdata

Many statistical organizations collect data that are expected to satisfy linear constraints; as examples, component variables should sum to total variables, and ratios of pairs of variables should be bounded by expert-specified constants. When reported data violate constraints, organizations identify and replace values potentially in error in a process known as edit-imputation.  In a paper published in the Journal of the American Statistical Association, we developed an approach that fully integrates editing and imputation for continuous microdata under linear constraints. The approach relies on a Bayesian hierarchical model that includes (i) a flexible joint probability model for the underlying true values of the data with support only on the set of values that satisfy all editing constraints, (ii) a model for latent indicators of the variables that are in error, and (iii) a model for the reported responses for variables in error.  This R package implements a version of the model that uses mixtures of multivariate normal distributions for the underlying true values and uniform distributions for measurement errors.  The package is available on CRAN.