{
  "_id": "6a49dd7d2c82cd3614824833",
  "Package": "COMMA",
  "Title": "Correcting Misclassified Mediation Analysis",
  "Version": "1.1.1",
  "Authors@R": "person(\"Kimberly\", \"Webb\",\nemail = \"kah343@cornell.edu\", role = c(\"aut\", \"cre\"))",
  "Author": "Kimberly Webb [aut, cre]",
  "Maintainer": "Kimberly Webb <kah343@cornell.edu>",
  "Description": "Use three methods to estimate parameters from a mediation\nanalysis with a binary misclassified mediator. These methods\ncorrect for the problem of \"label switching\" using Youden's J\ncriteria. A detailed description of the analysis methods is\navailable in Webb and Wells (2024), \"Effect estimation in the\npresence of a misclassified binary mediator\"\n<doi:10.48550/arXiv.2407.06970>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Collate": "'sum_every_n1.R' 'sum_every_n.R' 'pistar_compute.R'\n'pi_compute.R' 'COMBO_weight.R' 'COMBO_EM_function.R'\n'COMBO_EM_algorithm.R' 'COMMA_data.R' 'w_m_normalY.R'\n'w_m_binaryY.R' 'EM_function_normalY_XM.R'\n'EM_function_normalY.R' 'EM_function_bernoulliY_XM.R'\n'EM_function_bernoulliY.R' 'COMMA_EM.R' 'COMMA_boot_sample.R'\n'COMMA_EM_bootstrap_SE.R' 'COMMA_OLS.R'\n'COMMA_OLS_bootstrap_SE.R' 'COMMA_PVW.R'\n'COMMA_PVW_bootstrap_SE.R' 'EM_function_poissonY.R'\n'EM_function_poissonY_XM.R' 'NCHS2022_sample.R'\n'misclassification_prob.R' 'theta_optim.R' 'theta_optim_XM.R'\n'true_classification_prob.R' 'w_m_poissonY.R'",
  "LazyData": "true",
  "Repository": "https://kimberlywebb.r-universe.dev",
  "Date/Publication": "2024-12-16 13:23:42 UTC",
  "RemoteUrl": "https://github.com/kimberlywebb/comma",
  "RemoteRef": "HEAD",
  "RemoteSha": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-15 10:35:17 UTC",
    "User": "root"
  },
  "_user": "kimberlywebb",
  "_type": "src",
  "_file": "COMMA_1.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/0a70e2458a33a6423e483430fef45d4f418f55cadf60c0fcd6a0e6eeec6f13fc",
  "_filesize": 694513,
  "_sha256": "0a70e2458a33a6423e483430fef45d4f418f55cadf60c0fcd6a0e6eeec6f13fc",
  "_expires": "2026-10-13T04:28:43.000Z",
  "_created": "2026-06-15T10:35:17.000Z",
  "_published": "2026-07-05T04:28:45.005Z",
  "_jobs": [
    {
      "job": 85192558412,
      "time": 174,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7635638374"
    },
    {
      "job": 85192558376,
      "time": 151,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7635632950"
    },
    {
      "job": 85192558501,
      "time": 111,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7635616797"
    },
    {
      "job": 85192558453,
      "time": 106,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7635614347"
    },
    {
      "job": 85192558393,
      "time": 212,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7635574915"
    },
    {
      "job": 85192558431,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7635616277"
    },
    {
      "job": 85192558420,
      "time": 124,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7635621085"
    },
    {
      "job": 85192558489,
      "time": 116,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7635618836"
    },
    {
      "job": 85192558353,
      "time": 132,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7635624840"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/27540244306",
  "_status": "success",
  "_upstream": "https://github.com/kimberlywebb/comma",
  "_commit": {
    "id": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
    "author": "Kim Hochstedler Webb <kimhochstedler@gmail.com>",
    "committer": "Kim Hochstedler Webb <kimhochstedler@gmail.com>",
    "message": "update pkgdown\n",
    "time": 1734355422
  },
  "_maintainer": {
    "name": "Kimberly Webb",
    "email": "kah343@cornell.edu",
    "login": "kimberlywebb",
    "description": "Assistant Professor of Medicine at the University of Pittsburgh",
    "uuid": 52170271
  },
  "_distro": "noble",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "Matrix",
      "version": "> 1.4-1",
      "role": "Imports"
    },
    {
      "package": "turboEM",
      "version": ">= 2021.1",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.4",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "version": ">= 1.5.2",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "version": ">= 4.3.1",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "version": ">= 1.0.17",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "version": ">= 1.40",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "version": ">= 1.3.4",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.5.0",
      "role": "Suggests"
    },
    {
      "package": "markdown",
      "version": ">= 1.13",
      "role": "Suggests"
    },
    {
      "package": "stats",
      "version": ">= 4.3.1",
      "role": "Suggests"
    },
    {
      "package": "svglite",
      "version": ">= 2.1.3",
      "role": "Suggests"
    }
  ],
  "_owner": "kimberlywebb",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "kimberlywebb",
      "count": 104,
      "uuid": 52170271
    }
  ],
  "_userbio": {
    "uuid": 52170271,
    "type": "user",
    "name": "Kimberly A. Hochstedler Webb",
    "followers": 4,
    "description": "Assistant Professor of Medicine at the University of Pittsburgh"
  },
  "_downloads": {
    "count": 206,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/COMMA"
  },
  "_devurl": "https://github.com/kimberlywebb/comma",
  "_searchresults": 5,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/COMMA.html",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kimberlywebb/comma",
  "_realowner": "kimberlywebb",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-07-21"
    },
    {
      "version": "1.1.0",
      "date": "2024-10-30"
    },
    {
      "version": "1.1.1",
      "date": "2024-12-13"
    }
  ],
  "_exports": [
    "COMMA_data",
    "COMMA_EM",
    "COMMA_EM_bootstrap_SE",
    "COMMA_OLS",
    "COMMA_OLS_bootstrap_SE",
    "COMMA_PVW",
    "COMMA_PVW_bootstrap_SE",
    "misclassification_prob",
    "true_classification_prob"
  ],
  "_datasets": [
    {
      "name": "NCHS2022_sample",
      "title": "Example data from the National Vital Statistics System of the National Center for Health Statistics (NCHS), 2022",
      "object": "NCHS2022_sample",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X",
        "bmi",
        "prenatal_m",
        "ethnicity_char",
        "ethnicity",
        "cig_use",
        "eclampsia",
        "g_hyp",
        "pre_hyp",
        "g_diab",
        "pre_diab",
        "birth_wt",
        "birth_weight_log_grams",
        "preterm_birth",
        "medicaid",
        "self_pay",
        "age_cs",
        "bmi_cs"
      ],
      "rows": 20000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "COMBO_EM_algorithm",
      "title": "EM-Algorithm Estimation of the Binary Outcome Misclassification Model",
      "topics": [
        "COMBO_EM_algorithm"
      ]
    },
    {
      "page": "COMBO_EM_function",
      "title": "EM-Algorithm Function for Estimation of the Misclassification Model",
      "topics": [
        "COMBO_EM_function"
      ]
    },
    {
      "page": "COMBO_weight",
      "title": "Compute E-step for Binary Outcome Misclassification Model Estimated With the EM-Algorithm",
      "topics": [
        "COMBO_weight"
      ]
    },
    {
      "page": "COMMA_boot_sample",
      "title": "Generate Bootstrap Samples for Estimating Standard Errors",
      "topics": [
        "COMMA_boot_sample"
      ]
    },
    {
      "page": "COMMA_data",
      "title": "Generate Data to use in COMMA Functions",
      "topics": [
        "COMMA_data"
      ]
    },
    {
      "page": "COMMA_EM",
      "title": "EM Algorithm Estimation of the Binary Mediator Misclassification Model",
      "topics": [
        "COMMA_EM"
      ]
    },
    {
      "page": "COMMA_EM_bootstrap_SE",
      "title": "Estimate Bootstrap Standard Errors using EM",
      "topics": [
        "COMMA_EM_bootstrap_SE"
      ]
    },
    {
      "page": "COMMA_OLS",
      "title": "Ordinary Least Squares Estimation of the Binary Mediator Misclassification Model",
      "topics": [
        "COMMA_OLS"
      ]
    },
    {
      "page": "COMMA_OLS_bootstrap_SE",
      "title": "Estimate Bootstrap Standard Errors using OLS",
      "topics": [
        "COMMA_OLS_bootstrap_SE"
      ]
    },
    {
      "page": "COMMA_PVW",
      "title": "Predictive Value Weighting Estimation of the Binary Mediator Misclassification Model",
      "topics": [
        "COMMA_PVW"
      ]
    },
    {
      "page": "COMMA_PVW_bootstrap_SE",
      "title": "Estimate Bootstrap Standard Errors using PVW",
      "topics": [
        "COMMA_PVW_bootstrap_SE"
      ]
    },
    {
      "page": "EM_function_bernoulliY",
      "title": "EM Algorithm Function for Estimation of the Misclassification Model",
      "topics": [
        "EM_function_bernoulliY"
      ]
    },
    {
      "page": "EM_function_bernoulliY_XM",
      "title": "EM Algorithm Function for Estimation of the Misclassification Model",
      "topics": [
        "EM_function_bernoulliY_XM"
      ]
    },
    {
      "page": "EM_function_normalY",
      "title": "EM Algorithm Function for Estimation of the Misclassification Model",
      "topics": [
        "EM_function_normalY"
      ]
    },
    {
      "page": "EM_function_normalY_XM",
      "title": "EM Algorithm Function for Estimation of the Misclassification Model",
      "topics": [
        "EM_function_normalY_XM"
      ]
    },
    {
      "page": "EM_function_poissonY",
      "title": "EM Algorithm Function for Estimation of the Misclassification Model",
      "topics": [
        "EM_function_poissonY"
      ]
    },
    {
      "page": "EM_function_poissonY_XM",
      "title": "EM Algorithm Function for Estimation of the Misclassification Model",
      "topics": [
        "EM_function_poissonY_XM"
      ]
    },
    {
      "page": "misclassification_prob",
      "title": "Compute Conditional Probability of Observed Mediator Given True Mediator, for Every Subject",
      "topics": [
        "misclassification_prob"
      ]
    },
    {
      "page": "NCHS2022_sample",
      "title": "Example data from the National Vital Statistics System of the National Center for Health Statistics (NCHS), 2022",
      "topics": [
        "NCHS2022_sample"
      ]
    },
    {
      "page": "pi_compute",
      "title": "Compute Probability of Each True Outcome, for Every Subject",
      "topics": [
        "pi_compute"
      ]
    },
    {
      "page": "pistar_compute",
      "title": "Compute Conditional Probability of Each Observed Outcome Given Each True Outcome, for Every Subject",
      "topics": [
        "pistar_compute"
      ]
    },
    {
      "page": "sum_every_n",
      "title": "Sum Every \"n\"th Element",
      "topics": [
        "sum_every_n"
      ]
    },
    {
      "page": "sum_every_n1",
      "title": "Sum Every \"n\"th Element, then add 1",
      "topics": [
        "sum_every_n1"
      ]
    },
    {
      "page": "theta_optim",
      "title": "Likelihood Function for Normal Outcome Mechanism with a Binary Mediator",
      "topics": [
        "theta_optim"
      ]
    },
    {
      "page": "theta_optim_XM",
      "title": "Likelihood Function for Normal Outcome Mechanism with a Binary Mediator and an Interaction Term",
      "topics": [
        "theta_optim_XM"
      ]
    },
    {
      "page": "true_classification_prob",
      "title": "Compute Probability of Each True Mediator, for Every Subject",
      "topics": [
        "true_classification_prob"
      ]
    },
    {
      "page": "w_m_binaryY",
      "title": "Compute E-step for Binary Mediator Misclassification Model Estimated With the EM Algorithm",
      "topics": [
        "w_m_binaryY"
      ]
    },
    {
      "page": "w_m_normalY",
      "title": "Compute E-step for Binary Mediator Misclassification Model Estimated With the EM Algorithm",
      "topics": [
        "w_m_normalY"
      ]
    },
    {
      "page": "w_m_poissonY",
      "title": "Compute E-step for Binary Mediator Misclassification Model Estimated With the EM Algorithm",
      "topics": [
        "w_m_poissonY"
      ]
    }
  ],
  "_readme": "https://github.com/kimberlywebb/comma/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "doParallel",
    "dplyr",
    "foreach",
    "generics",
    "glue",
    "iterators",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "quantreg",
    "R6",
    "rlang",
    "SparseM",
    "survival",
    "tibble",
    "tidyselect",
    "turboEM",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "COMMA_Notation_Guide.Rmd",
      "filename": "COMMA_Notation_Guide.html",
      "title": "COMMA Notation Guide",
      "author": "Kimberly Webb",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2024-06-05 19:15:41",
      "modified": "2024-06-18 16:44:32",
      "commits": 2
    },
    {
      "source": "COMMA_demo.Rmd",
      "filename": "COMMA_demo.html",
      "title": "Demonstration of the COMMA R Package",
      "author": "Created by Kimberly A. Hochstedler Webb. Contact: kah343@cornell.edu",
      "engine": "knitr::knitr",
      "headings": [
        "Model and Conceptual Framework",
        "Simulate data - Normal outcome",
        "Effect estimation",
        "EM algorithm",
        "OLS correction",
        "Compare results",
        "Simulate data - Bernoulli outcome",
        "PVW approach"
      ],
      "created": "2024-06-05 19:15:41",
      "modified": "2024-07-06 15:55:49",
      "commits": 4
    }
  ],
  "_score": 4,
  "_indexed": true,
  "_nocasepkg": "comma",
  "_universes": [
    "kimberlywebb"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-06-15T10:37:48.000Z",
      "distro": "noble",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "https://r2.ropensci.org/5a8c6558dc2d819331cf48f31115c2dc3d8f53398314ac3d095ef4fe5c6fb60c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/27540244306"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-06-15T10:37:30.000Z",
      "distro": "noble",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "https://r2.ropensci.org/8549630219f64772efd3ff22b75745f62d15dd92e6760ac5a326c05422967683",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/27540244306"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-06-15T10:36:58.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "https://r2.ropensci.org/1e0921caa4f0cc220518b39f35a749a4188b1ee60522deed9cb722d04b566ea6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/27540244306"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-06-15T10:36:45.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "https://r2.ropensci.org/9f53832c9e75678d216f2fae9e9f897be2cf11d27e6520781077539664401ab2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/27540244306"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-06-15T10:37:27.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "https://r2.ropensci.org/d73a737277570ea0f192b91a464045aa6ff7f66e00766f979f12ba1217a3cfa1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/27540244306"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-06-15T10:36:43.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "https://r2.ropensci.org/7f38f48000b3077d154e801679f9837a450a80a5e7432eeb316598671472e7a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/27540244306"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-06-15T10:36:41.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "https://r2.ropensci.org/32282315e334ddcc93a16a8fdfbbd7ab1aec54a1f1f42e7f3176297f58e352e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/27540244306"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-06-15T10:36:49.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "https://r2.ropensci.org/c73fb6ff8315cd8bce5c5abdb8a3bf8267b2d68509b3a6bd99351a2942ab52ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/27540244306"
    }
  ]
}