COMMA1.1.1 package

Correcting Misclassified Mediation Analysis

EM_function_bernoulliY

EM Algorithm Function for Estimation of the Misclassification Model

EM_function_normalY_XM

EM Algorithm Function for Estimation of the Misclassification Model

EM_function_normalY

EM Algorithm Function for Estimation of the Misclassification Model

EM_function_poissonY_XM

EM Algorithm Function for Estimation of the Misclassification Model

EM_function_poissonY

EM Algorithm Function for Estimation of the Misclassification Model

COMMA_PVW

Predictive Value Weighting Estimation of the Binary Mediator Misclassi...

COMBO_EM_algorithm

EM-Algorithm Estimation of the Binary Outcome Misclassification Model

COMBO_EM_function

EM-Algorithm Function for Estimation of the Misclassification Model

EM_function_bernoulliY_XM

EM Algorithm Function for Estimation of the Misclassification Model

COMBO_weight

Compute E-step for Binary Outcome Misclassification Model Estimated Wi...

COMMA_boot_sample

Generate Bootstrap Samples for Estimating Standard Errors

COMMA_data

Generate Data to use in COMMA Functions

COMMA_EM_bootstrap_SE

Estimate Bootstrap Standard Errors using EM

COMMA_EM

EM Algorithm Estimation of the Binary Mediator Misclassification Model

COMMA_OLS_bootstrap_SE

Estimate Bootstrap Standard Errors using OLS

COMMA_OLS

Ordinary Least Squares Estimation of the Binary Mediator Misclassifica...

COMMA_PVW_bootstrap_SE

Estimate Bootstrap Standard Errors using PVW

misclassification_prob

Compute Conditional Probability of Observed Mediator Given True Mediat...

pi_compute

Compute Probability of Each True Outcome, for Every Subject

pistar_compute

Compute Conditional Probability of Each Observed Outcome Given Each Tr...

sum_every_n

Sum Every "n"th Element

sum_every_n1

Sum Every "n"th Element, then add 1

theta_optim_XM

Likelihood Function for Normal Outcome Mechanism with a Binary Mediato...

theta_optim

Likelihood Function for Normal Outcome Mechanism with a Binary Mediato...

true_classification_prob

Compute Probability of Each True Mediator, for Every Subject

w_m_binaryY

Compute E-step for Binary Mediator Misclassification Model Estimated W...

w_m_normalY

Compute E-step for Binary Mediator Misclassification Model Estimated W...

w_m_poissonY

Compute E-step for Binary Mediator Misclassification Model Estimated W...

Use three methods to estimate parameters from a mediation analysis with a binary misclassified mediator. These methods correct for the problem of "label switching" using Youden's J criteria. A detailed description of the analysis methods is available in Webb and Wells (2024), "Effect estimation in the presence of a misclassified binary mediator" <doi:10.48550/arXiv.2407.06970>.

  • Maintainer: Kimberly Webb
  • License: MIT + file LICENSE
  • Last published: 2024-12-13