
COMMA:COrrectingMisclassifiedMediationAnalysis
COMMA provides a set of functions for the analysisof mediation models with binary mediator misclassification.
The two main parts are:
The package allows users to compute the probability of the latenttrue mediators and the conditional probability of observing a mediatorvalue given the latent true mediator, based on parameters estimated fromtheCOMMA_EM,COMMA_PVW, andCOMMA_OLS functions.
Jointly estimate parameters from the true mediator, observedmediator, and outcome mechanisms, respectively, in a mediation analysiswith a binary misclassified mediator variable. Three methods areprovided for parameter estimation: an ordinary least squares correctionprocedure, a predictive value weighting approach, and anexpectation-maximization algorithm.
# Install from CRAN:install.packages("COMBO")# Install the development version from GitHub:# install.packages("devtools")devtools::install_github("kimberlywebb/COMMA")