{
  "_id": "6a291449732311cd875985b7",
  "Package": "COMBO",
  "Title": "Correcting Misclassified Binary Outcomes in Association Studies",
  "Version": "1.2.0",
  "Authors@R": "person(\"Kimberly\", \"Hochstedler Webb\",\nemail = \"kah343@cornell.edu\", role = c(\"aut\", \"cre\"))",
  "Author": "Kimberly Hochstedler Webb [aut, cre]",
  "Maintainer": "Kimberly Hochstedler Webb <kah343@cornell.edu>",
  "Description": "Use frequentist and Bayesian methods to estimate\nparameters from a binary outcome misclassification model. These\nmethods correct for the problem of \"label switching\" by\nassuming that the sum of outcome sensitivity and specificity is\nat least 1. A description of the analysis methods is available\nin Hochstedler and Wells (2023)\n<doi:10.48550/arXiv.2303.10215>.",
  "SystemRequirements": "JAGS (http://mcmc-jags.sourceforge.net)",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Collate": "'sum_every_n1.R' 'sum_every_n.R' 'pistar_compute.R'\n'pi_compute.R' 'COMBO_data.R' 'expit.R'\n'perfect_sensitivity_EM.R' 'w_j.R' 'q_gamma_f.R' 'q_beta_f.R'\n'em_function.R' 'loglik.R' 'COMBO_EM.R' 'pitilde_compute.R'\n'COMBO_data_2stage.R' 'w_j_2stage.R' 'q_delta_f.R'\n'em_function_2stage.R' 'loglik_2stage.R' 'COMBO_EM_2stage.R'\n'COMBO_EM_data.R' 'label_switch.R' 'check_and_fix_chains.R'\n'mean_pistarjj_compute.R' 'pistar_compute_for_chains.R'\n'pistar_by_chain.R' 'naive_jags_picker.R'\n'naive_model_picker.R' 'jags_picker.R' 'model_picker.R'\n'COMBO_MCMC.R' 'model_picker_2stage.R' 'COMBO_MCMC_2stage.R'\n'LSAC_data.R' 'VPRAI_synthetic_data.R'\n'check_and_fix_chains_2stage.R' 'jags_picker_2stage.R'\n'label_switch_2stage.R' 'misclassification_prob.R'\n'misclassification_prob2.R' 'naive_jags_picker_2stage.R'\n'naive_loglik_2stage.R' 'naive_model_picker_2stage.R'\n'pistar_by_chain_2stage.R' 'pistar_compute_for_chains_2stage.R'\n'pitilde_by_chain.R' 'pitilde_compute_for_chains.R'\n'true_classification_prob.R'",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-10 07:33:42 UTC",
    "User": "root"
  },
  "Config/pak/sysreqs": "jags",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2024-10-30 15:50:02 UTC",
  "RemoteUrl": "https://github.com/cran/COMBO",
  "RemoteRef": "HEAD",
  "RemoteSha": "eb3515bd0357257cd3a1e4677adfdf48e9a7552e",
  "MD5sum": "448b0a17cc14022f549df8391aca9984",
  "_user": "cran",
  "_type": "src",
  "_file": "COMBO_1.2.0.tar.gz",
  "_fileid": "6982bdd4937e7ca852d3f69d90944368ec6c0075965caa292ca4840504bd7cd5",
  "_filesize": 705469,
  "_sha256": "6982bdd4937e7ca852d3f69d90944368ec6c0075965caa292ca4840504bd7cd5",
  "_created": "2026-06-10T07:33:42.000Z",
  "_published": "2026-06-10T07:37:45.466Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80505499324,
      "time": 201,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7529352987"
    },
    {
      "job": 80505499312,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7529340157"
    },
    {
      "job": 80504932190,
      "time": 207,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7529283314"
    },
    {
      "job": 80505499338,
      "time": 148,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7529334389"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27260525102",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/COMBO",
  "_commit": {
    "id": "eb3515bd0357257cd3a1e4677adfdf48e9a7552e",
    "author": "Kimberly Hochstedler Webb <kah343@cornell.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.2.0\n",
    "time": 1730303402
  },
  "_maintainer": {
    "name": "Kimberly Hochstedler Webb",
    "email": "kah343@cornell.edu",
    "login": "kimberlywebb",
    "description": "Assistant Professor of Medicine at the University of Pittsburgh",
    "uuid": 52170271
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.10",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.2.1",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": "> 1.4-1",
      "role": "Imports"
    },
    {
      "package": "rjags",
      "version": ">= 4-13",
      "role": "Imports"
    },
    {
      "package": "turboEM",
      "version": ">= 2021.1",
      "role": "Imports"
    },
    {
      "package": "SAMBA",
      "version": ">= 0.9.0",
      "role": "Imports"
    },
    {
      "package": "utils",
      "version": ">= 4.2.0",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "version": ">= 1.40",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "version": ">= 2.4.5",
      "role": "Suggests"
    },
    {
      "package": "xtable",
      "version": ">= 1.8.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "kimberlywebb",
      "count": 3,
      "uuid": 52170271
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 582,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/COMBO"
  },
  "_searchresults": 4,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/COMBO.html",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kimberlywebb/combo",
  "_realowner": "kimberlywebb",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2023-04-19"
    },
    {
      "version": "1.1.0",
      "date": "2024-07-06"
    },
    {
      "version": "1.2.0",
      "date": "2024-10-30"
    }
  ],
  "_exports": [
    "COMBO_data",
    "COMBO_data_2stage",
    "COMBO_EM",
    "COMBO_EM_2stage",
    "COMBO_MCMC",
    "COMBO_MCMC_2stage",
    "misclassification_prob",
    "misclassification_prob2",
    "true_classification_prob"
  ],
  "_datasets": [
    {
      "name": "COMBO_EM_data",
      "title": "Test data for the COMBO_EM function",
      "object": "COMBO_EM_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "LSAC_data",
      "title": "Example data from The Law School Admissions Council's (LSAC) National Bar Passage Study (Linda Wightman, 1998)",
      "object": "LSAC_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "decile1b",
        "decile3",
        "ID",
        "decile1",
        "sex",
        "race",
        "cluster",
        "lsat",
        "ugpa",
        "zfygpa",
        "DOB_yr",
        "grad",
        "zgpa",
        "bar1",
        "bar1_yr",
        "bar2",
        "bar2_yr",
        "fulltime",
        "fam_inc",
        "age",
        "gender",
        "parttime",
        "male",
        "race1",
        "race2",
        "Dropout",
        "other",
        "asian",
        "black",
        "hisp",
        "pass_bar",
        "bar",
        "bar_passed",
        "tier",
        "index6040",
        "indxgrp",
        "indxgrp2",
        "dnn_bar_pass_prediction",
        "gpa"
      ],
      "rows": 22407,
      "table": true,
      "tojson": true
    },
    {
      "name": "VPRAI_synthetic_data",
      "title": "Synthetic example data of pretrial failure risk factors and outcomes, VPRAI recommendations, and judge decisions",
      "object": "VPRAI_synthetic_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X",
        "n_FTA",
        "unemployed",
        "drug_abuse",
        "n_violent_arrest",
        "race",
        "vprai",
        "judge",
        "pretrial_failure"
      ],
      "rows": 1990,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "check_and_fix_chains",
      "title": "Check Assumption and Fix Label Switching if Assumption is Broken for a List of MCMC Samples",
      "topics": [
        "check_and_fix_chains"
      ]
    },
    {
      "page": "check_and_fix_chains_2stage",
      "title": "Check Assumption and Fix Label Switching if Assumption is Broken for a List of MCMC Samples",
      "topics": [
        "check_and_fix_chains_2stage"
      ]
    },
    {
      "page": "COMBO_data",
      "title": "Generate Data to use in COMBO Functions",
      "topics": [
        "COMBO_data"
      ]
    },
    {
      "page": "COMBO_data_2stage",
      "title": "Generate data to use in two-stage COMBO Functions",
      "topics": [
        "COMBO_data_2stage"
      ]
    },
    {
      "page": "COMBO_EM",
      "title": "EM-Algorithm Estimation of the Binary Outcome Misclassification Model",
      "topics": [
        "COMBO_EM"
      ]
    },
    {
      "page": "COMBO_EM_2stage",
      "title": "EM-Algorithm Estimation of the Two-Stage Binary Outcome Misclassification Model",
      "topics": [
        "COMBO_EM_2stage"
      ]
    },
    {
      "page": "COMBO_EM_data",
      "title": "Test data for the COMBO_EM function",
      "topics": [
        "COMBO_EM_data"
      ]
    },
    {
      "page": "COMBO_MCMC",
      "title": "MCMC Estimation of the Binary Outcome Misclassification Model",
      "topics": [
        "COMBO_MCMC"
      ]
    },
    {
      "page": "COMBO_MCMC_2stage",
      "title": "MCMC Estimation of the Two-Stage Binary Outcome Misclassification Model",
      "topics": [
        "COMBO_MCMC_2stage"
      ]
    },
    {
      "page": "em_function",
      "title": "EM-Algorithm Function for Estimation of the Misclassification Model",
      "topics": [
        "em_function"
      ]
    },
    {
      "page": "em_function_2stage",
      "title": "EM-Algorithm Function for Estimation of the Two-Stage Misclassification Model",
      "topics": [
        "em_function_2stage"
      ]
    },
    {
      "page": "expit",
      "title": "Expit function",
      "topics": [
        "expit"
      ]
    },
    {
      "page": "jags_picker",
      "title": "Set up a Binary Outcome Misclassification 'jags.model' Object for a Given Prior",
      "topics": [
        "jags_picker"
      ]
    },
    {
      "page": "jags_picker_2stage",
      "title": "Set up a Two-Stage Binary Outcome Misclassification 'jags.model' Object for a Given Prior",
      "topics": [
        "jags_picker_2stage"
      ]
    },
    {
      "page": "label_switch",
      "title": "Fix Label Switching in MCMC Results from a Binary Outcome Misclassification Model",
      "topics": [
        "label_switch"
      ]
    },
    {
      "page": "label_switch_2stage",
      "title": "Fix Label Switching in MCMC Results from a Binary Outcome Misclassification Model",
      "topics": [
        "label_switch_2stage"
      ]
    },
    {
      "page": "loglik",
      "title": "Expected Complete Data Log-Likelihood Function for Estimation of the Misclassification Model",
      "topics": [
        "loglik"
      ]
    },
    {
      "page": "loglik_2stage",
      "title": "Expected Complete Data Log-Likelihood Function for Estimation of the Two-Stage Misclassification Model",
      "topics": [
        "loglik_2stage"
      ]
    },
    {
      "page": "LSAC_data",
      "title": "Example data from The Law School Admissions Council's (LSAC) National Bar Passage Study (Linda Wightman, 1998)",
      "topics": [
        "LSAC_data"
      ]
    },
    {
      "page": "mean_pistarjj_compute",
      "title": "Compute the Mean Conditional Probability of Correct Classification, by True Outcome Across all Subjects",
      "topics": [
        "mean_pistarjj_compute"
      ]
    },
    {
      "page": "misclassification_prob",
      "title": "Compute Conditional Probability of Each Observed Outcome Given Each True Outcome, for Every Subject",
      "topics": [
        "misclassification_prob"
      ]
    },
    {
      "page": "misclassification_prob2",
      "title": "Compute Conditional Probability of Each Second-Stage Observed Outcome Given Each True Outcome and First-Stage Observed Outcome, for Every Subject",
      "topics": [
        "misclassification_prob2"
      ]
    },
    {
      "page": "model_picker",
      "title": "Select a Binary Outcome Misclassification Model for a Given Prior",
      "topics": [
        "model_picker"
      ]
    },
    {
      "page": "model_picker_2stage",
      "title": "Select a Two-Stage Binary Outcome Misclassification Model for a Given Prior",
      "topics": [
        "model_picker_2stage"
      ]
    },
    {
      "page": "naive_jags_picker",
      "title": "Set up a Naive Logistic Regression 'jags.model' Object for a Given Prior",
      "topics": [
        "naive_jags_picker"
      ]
    },
    {
      "page": "naive_jags_picker_2stage",
      "title": "Set up a Naive Two-Stage Regression 'jags.model' Object for a Given Prior",
      "topics": [
        "naive_jags_picker_2stage"
      ]
    },
    {
      "page": "naive_loglik_2stage",
      "title": "Observed Data Log-Likelihood Function for Estimation of the Naive Two-Stage Misclassification Model",
      "topics": [
        "naive_loglik_2stage"
      ]
    },
    {
      "page": "naive_model_picker",
      "title": "Select a Logisitic Regression Model for a Given Prior",
      "topics": [
        "naive_model_picker"
      ]
    },
    {
      "page": "naive_model_picker_2stage",
      "title": "Select a Naive Two-Stage Regression Model for a Given Prior",
      "topics": [
        "naive_model_picker_2stage"
      ]
    },
    {
      "page": "perfect_sensitivity_EM",
      "title": "EM-Algorithm Estimation of the Binary Outcome Misclassification Model while Assuming Perfect Sensitivity",
      "topics": [
        "perfect_sensitivity_EM"
      ]
    },
    {
      "page": "pi_compute",
      "title": "Compute Probability of Each True Outcome, for Every Subject",
      "topics": [
        "pi_compute"
      ]
    },
    {
      "page": "pistar_by_chain",
      "title": "Compute the Mean Conditional Probability of Correct Classification, by True Outcome Across all Subjects for each MCMC Chain",
      "topics": [
        "pistar_by_chain"
      ]
    },
    {
      "page": "pistar_by_chain_2stage",
      "title": "Compute the Mean Conditional Probability of Correct Classification, by True Outcome Across all Subjects for each MCMC Chain for a 2-stage model",
      "topics": [
        "pistar_by_chain_2stage"
      ]
    },
    {
      "page": "pistar_compute",
      "title": "Compute Conditional Probability of Each Observed Outcome Given Each True Outcome, for Every Subject",
      "topics": [
        "pistar_compute"
      ]
    },
    {
      "page": "pistar_compute_for_chains",
      "title": "Compute Conditional Probability of Each Observed Outcome Given Each True Outcome for a given MCMC Chain, for Every Subject",
      "topics": [
        "pistar_compute_for_chains"
      ]
    },
    {
      "page": "pistar_compute_for_chains_2stage",
      "title": "Compute Conditional Probability of Each Observed Outcome Given Each True Outcome for a given MCMC Chain, for Every Subject for 2-stage models",
      "topics": [
        "pistar_compute_for_chains_2stage"
      ]
    },
    {
      "page": "pitilde_by_chain",
      "title": "Compute the Mean Conditional Probability of Second-Stage Correct Classification, by First-Stage and True Outcome Across all Subjects for each MCMC Chain",
      "topics": [
        "pitilde_by_chain"
      ]
    },
    {
      "page": "pitilde_compute",
      "title": "Compute Conditional Probability of Each Second-Stage Observed Outcome Given Each True Outcome and First-Stage Observed Outcome, for Every Subject",
      "topics": [
        "pitilde_compute"
      ]
    },
    {
      "page": "pitilde_compute_for_chains",
      "title": "Compute Conditional Probability of Each Observed Outcome Given Each True Outcome for a given MCMC Chain, for Every Subject",
      "topics": [
        "pitilde_compute_for_chains"
      ]
    },
    {
      "page": "q_beta_f",
      "title": "M-Step Expected Log-Likelihood with respect to Beta",
      "topics": [
        "q_beta_f"
      ]
    },
    {
      "page": "q_delta_f",
      "title": "M-Step Expected Log-Likelihood with respect to Delta",
      "topics": [
        "q_delta_f"
      ]
    },
    {
      "page": "q_gamma_f",
      "title": "M-Step Expected Log-Likelihood with respect to Gamma",
      "topics": [
        "q_gamma_f"
      ]
    },
    {
      "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": "true_classification_prob",
      "title": "Compute Probability of Each True Outcome, for Every Subject",
      "topics": [
        "true_classification_prob"
      ]
    },
    {
      "page": "VPRAI_synthetic_data",
      "title": "Synthetic example data of pretrial failure risk factors and outcomes, VPRAI recommendations, and judge decisions",
      "topics": [
        "VPRAI_synthetic_data"
      ]
    },
    {
      "page": "w_j",
      "title": "Compute E-step for Binary Outcome Misclassification Model Estimated With the EM-Algorithm",
      "topics": [
        "w_j"
      ]
    },
    {
      "page": "w_j_2stage",
      "title": "Compute E-step for Two-Stage Binary Outcome Misclassification Model Estimated With the EM-Algorithm",
      "topics": [
        "w_j_2stage"
      ]
    }
  ],
  "_readme": "https://github.com/cran/COMBO/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "coda",
    "codetools",
    "cpp11",
    "DBI",
    "doParallel",
    "dplyr",
    "foreach",
    "generics",
    "glue",
    "iterators",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "minqa",
    "mitools",
    "nloptr",
    "numDeriv",
    "optimx",
    "pillar",
    "pkgconfig",
    "pracma",
    "purrr",
    "quantreg",
    "R6",
    "Rcpp",
    "RcppArmadillo",
    "rjags",
    "rlang",
    "SAMBA",
    "SparseM",
    "stringi",
    "stringr",
    "survey",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "turboEM",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libjags",
      "package": "jags",
      "headers": "jags",
      "source": "jags",
      "version": "4.3.2-2.2404.0",
      "name": "jags",
      "homepage": "https://mcmc-jags.sourceforge.io",
      "description": "Just Another Gibbs Sampler for Bayesian MCMC - binary"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "COMBO_notation_guide.Rmd",
      "filename": "COMBO_notation_guide.html",
      "title": "COMBO Notation Guide",
      "author": "Kim Hochstedler",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Notation"
      ],
      "created": "2023-04-19 12:50:06",
      "modified": "2024-10-30 15:50:02",
      "commits": 3
    },
    {
      "source": "COMBO_notation_guide_2stage.Rmd",
      "filename": "COMBO_notation_guide_2stage.html",
      "title": "COMBO Notation Guide - Two-stage Misclassification Model",
      "author": "Kim Hochstedler",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Notation"
      ],
      "created": "2023-04-19 12:50:06",
      "modified": "2024-10-30 15:50:02",
      "commits": 3
    }
  ],
  "_score": 3,
  "_indexed": false,
  "_nocasepkg": "combo",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://kimberlywebb.r-universe.dev/COMBO",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-06-10T07:36:39.000Z",
      "distro": "noble",
      "commit": "eb3515bd0357257cd3a1e4677adfdf48e9a7552e",
      "fileid": "04ebf4de0e3cc785b72b0c58f51bfaa9639be3f697102e06d4451354cd439337",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27260525102"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-06-10T07:36:04.000Z",
      "distro": "noble",
      "commit": "eb3515bd0357257cd3a1e4677adfdf48e9a7552e",
      "fileid": "9167abea593b310bd30732f41949f69840d9d148fe8f0b31f11d1fa9e0bb0e80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27260525102"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.0",
      "date": "2026-06-10T07:36:32.000Z",
      "commit": "eb3515bd0357257cd3a1e4677adfdf48e9a7552e",
      "fileid": "578f6ad5ffd3b9fba39d37514aa29d2fab5b4530dea4c438e51d1ff40dfb6db4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27260525102"
    }
  ]
}