{
  "_id": "6a1f2576b401979e734216eb",
  "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-05-16 06:09:15 UTC",
    "User": "root"
  },
  "MD5sum": "c624c5b04f4acf9a402907cdcc6820bc",
  "_user": "kimberlywebb",
  "_type": "src",
  "_file": "COMMA_1.1.1.tar.gz",
  "_fileid": "40b85ea74eea37eb9a2ec22d2e8e2257f6f41237a1653f5d5a818fb00b53a0c1",
  "_filesize": 690070,
  "_sha256": "40b85ea74eea37eb9a2ec22d2e8e2257f6f41237a1653f5d5a818fb00b53a0c1",
  "_created": "2026-05-16T06:09:15.000Z",
  "_published": "2026-06-02T18:48:22.911Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79147108103,
      "time": 156,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031091327"
    },
    {
      "job": 79147108462,
      "time": 158,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031091586"
    },
    {
      "job": 79147108370,
      "time": 103,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031162088"
    },
    {
      "job": 79147108313,
      "time": 98,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031148962"
    },
    {
      "job": 79147107961,
      "time": 231,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031074284"
    },
    {
      "job": 79147107553,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366893233"
    },
    {
      "job": 79147108345,
      "time": 160,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031091871"
    },
    {
      "job": 79147108439,
      "time": 126,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031088078"
    },
    {
      "job": 79147108457,
      "time": 108,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031086167"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/25954568104",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 52170271
  },
  "_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",
    "description": "Assistant Professor of Medicine at the University of Pittsburgh"
  },
  "_downloads": {
    "count": 221,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/COMMA"
  },
  "_devurl": "https://github.com/kimberlywebb/comma",
  "_searchresults": 13,
  "_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",
    "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.113943352306837,
  "_indexed": true,
  "_nocasepkg": "comma",
  "_universes": [
    "kimberlywebb"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-05-16T06:11:31.000Z",
      "distro": "noble",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "8680ccde02b4a9d6d10af4a289bfcd47d22aec968013b1463adf21bc553af0bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/25954568104"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-05-16T06:11:25.000Z",
      "distro": "noble",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "cec25da1d38996bdb34616377a70b4f1c6e3be266b64815d6d328be81772545e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/25954568104"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-05-16T06:23:15.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "362310554fba2b4073ef9de37c8ffb17816378e303bff49eb72df238dc534765",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/25954568104"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-05-16T06:21:03.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "979731663ba484155e34ed92d1ef38977b2cf97905e052e7b18a4179158da2a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/25954568104"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-05-16T06:11:21.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "e2e52cd41dd3ea39ed234facad4699bebfbb4e4e5d2d9afedf6aaca5e3875c73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/25954568104"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-05-16T06:10:43.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "c091fd0f8a144074dc1190ed2089d768cad53db7cb45c5d63e1b83494d48324c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/25954568104"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-05-16T06:10:27.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "66658e98e973f6d0a8e31a73b4a68e204ffc15f8e4b8432a931ff265ebf93cd2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/25954568104"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-06-02T18:48:00.000Z",
      "commit": "01b953a5ed4b9df257efdab86ce83d49f362e5f6",
      "fileid": "698452fe18fd2e7c77bc55552ba558be1ee9267f504276ebdc0d7bc861c1ce5d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kimberlywebb/actions/runs/25954568104"
    }
  ]
}