{
  "_id": "6a1efcf6b401979e7341991f",
  "Package": "fairmetrics",
  "Title": "Fairness Evaluation Metrics with Confidence Intervals for Binary\nProtected Attributes",
  "Version": "1.0.8",
  "Authors@R": "c(\nperson(\"Jianhui\", \"Gao\", email = \"jianhui.gao@mail.utoronto.ca\", role = c(\"aut\"),comment = c(ORCID = \"0000-0003-0915-1473\")),\nperson(\"Benjamin\", \"Smith\", email = \"benyamin.smith@mail.utoronto.ca\", role = c(\"aut\",\"cre\"), comment = c(ORCID = \"0009-0007-2206-0177\")),\nperson(\"Benson\", \"Chou\", email = \"benson.chou@mail.utoronto.ca\", role = c(\"aut\"), comment = c(ORCID = \"0009-0007-0265-033X\")),\nperson(\"Jessica\", \"Gronsbell\", email = \"j.gronsbell@utoronto.ca\", role = c(\"aut\"), comment = c(ORCID = \"0000-0002-5360-5869\"))\n)",
  "Description": "A collection of functions for computing fairness metrics\nfor machine learning and statistical models, including\nconfidence intervals for each metric. The package supports the\nevaluation of group-level fairness criterion commonly used in\nfairness research, particularly in healthcare for binary\nprotected attributes. It is based on the overview of fairness\nin machine learning written by Gao et al (2025)\n<doi:10.1002/sim.70234>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "URL": "https://jianhuig.github.io/fairmetrics/",
  "VignetteBuilder": "knitr",
  "Repository": "https://jianhuig.r-universe.dev",
  "Date/Publication": "2026-04-17 20:59:59 UTC",
  "RemoteUrl": "https://github.com/jianhuig/fairmetrics",
  "RemoteRef": "HEAD",
  "RemoteSha": "e32f070bd668acef95c98c193c43ece3873e4105",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-18 10:03:10 UTC",
    "User": "root"
  },
  "Author": "Jianhui Gao [aut] (ORCID: <https://orcid.org/0000-0003-0915-1473>),\nBenjamin Smith [aut, cre] (ORCID:\n<https://orcid.org/0009-0007-2206-0177>),\nBenson Chou [aut] (ORCID: <https://orcid.org/0009-0007-0265-033X>),\nJessica Gronsbell [aut] (ORCID:\n<https://orcid.org/0000-0002-5360-5869>)",
  "Maintainer": "Benjamin Smith <benyamin.smith@mail.utoronto.ca>",
  "MD5sum": "d20c114721511eb98a2d7f1fba6d9491",
  "_user": "jianhuig",
  "_type": "src",
  "_file": "fairmetrics_1.0.8.tar.gz",
  "_fileid": "1daf002b0da530b765c6e0fa9e33ac8ed10d8fe67e25ef4e08bd271100dde054",
  "_filesize": 361456,
  "_sha256": "1daf002b0da530b765c6e0fa9e33ac8ed10d8fe67e25ef4e08bd271100dde054",
  "_created": "2026-05-18T10:03:10.000Z",
  "_published": "2026-06-02T15:55:34.836Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79113922091,
      "time": 132,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7054907958"
    },
    {
      "job": 79113922039,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054920178"
    },
    {
      "job": 79113922313,
      "time": 159,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7054909629"
    },
    {
      "job": 79113921847,
      "time": 180,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054911701"
    },
    {
      "job": 79113921681,
      "time": 215,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054863233"
    },
    {
      "job": 79113921174,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7362956678"
    },
    {
      "job": 79113922191,
      "time": 93,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7054895360"
    },
    {
      "job": 79113922626,
      "time": 79,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7054890547"
    },
    {
      "job": 79113922025,
      "time": 101,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054898415"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jianhuig/actions/runs/26026585934",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/jianhuig/fairmetrics",
  "_commit": {
    "id": "e32f070bd668acef95c98c193c43ece3873e4105",
    "author": "Benjamin Smith <46410142+benyamindsmith@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README title for consistency in capitalization",
    "time": 1776459599
  },
  "_maintainer": {
    "name": "Benjamin Smith",
    "email": "benyamin.smith@mail.utoronto.ca"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "magrittr",
      "role": "Suggests"
    },
    {
      "package": "corrplot",
      "role": "Suggests"
    },
    {
      "package": "randomForest",
      "role": "Suggests"
    },
    {
      "package": "pROC",
      "role": "Suggests"
    },
    {
      "package": "SpecsVerification",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "naniar",
      "role": "Suggests"
    }
  ],
  "_owner": "jianhuig",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-20",
      "n": 12
    },
    {
      "week": "2025-22",
      "n": 7
    },
    {
      "week": "2025-23",
      "n": 14
    },
    {
      "week": "2025-24",
      "n": 7
    },
    {
      "week": "2025-26",
      "n": 5
    },
    {
      "week": "2025-29",
      "n": 4
    },
    {
      "week": "2025-30",
      "n": 8
    },
    {
      "week": "2025-31",
      "n": 4
    },
    {
      "week": "2025-32",
      "n": 14
    },
    {
      "week": "2025-33",
      "n": 7
    },
    {
      "week": "2025-34",
      "n": 13
    },
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 4
    },
    {
      "week": "2025-38",
      "n": 4
    },
    {
      "week": "2025-39",
      "n": 3
    },
    {
      "week": "2025-41",
      "n": 4
    },
    {
      "week": "2026-16",
      "n": 6
    }
  ],
  "_tags": [
    {
      "name": "v1.0.0",
      "date": "2025-05-28"
    },
    {
      "name": "v1.0.1",
      "date": "2025-06-01"
    },
    {
      "name": "v1.0.2",
      "date": "2025-06-04"
    },
    {
      "name": "v1.0.3",
      "date": "2025-06-12"
    },
    {
      "name": "v1.0.4",
      "date": "2025-07-22"
    },
    {
      "name": "v1.0.5",
      "date": "2025-09-07"
    },
    {
      "name": "v1.0.6",
      "date": "2025-09-10"
    },
    {
      "name": "v1.0.7",
      "date": "2025-10-06"
    },
    {
      "name": "v1.0.8",
      "date": "2026-04-16"
    }
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "benyamindsmith",
      "count": 187,
      "uuid": 46410142
    },
    {
      "user": "jianhuig",
      "count": 114,
      "uuid": 58570421
    },
    {
      "user": "benson-chou",
      "count": 39,
      "uuid": 74111211
    },
    {
      "user": "jlgrons",
      "count": 20,
      "uuid": 79216661
    },
    {
      "user": "nikoleta-v3",
      "count": 1,
      "uuid": 19708408
    }
  ],
  "_userbio": {
    "uuid": 58570421,
    "type": "user",
    "name": "Jianhui Gao",
    "description": "PhD student in statistics at the University of Toronto. Interested in semi-supervised learning and statistical genetics. "
  },
  "_downloads": {
    "count": 517,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fairmetrics"
  },
  "_devurl": "https://github.com/jianhuig/fairmetrics",
  "_pkgdown": "https://jianhuig.github.io/fairmetrics/",
  "_searchresults": 43,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fairmetrics.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/jianhuig/fairmetrics",
  "_realowner": "jianhuig",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-05-19"
    },
    {
      "version": "1.0.1",
      "date": "2025-06-01"
    },
    {
      "version": "1.0.2",
      "date": "2025-06-05"
    },
    {
      "version": "1.0.3",
      "date": "2025-06-12"
    },
    {
      "version": "1.0.4",
      "date": "2025-07-22"
    },
    {
      "version": "1.0.5",
      "date": "2025-09-05"
    },
    {
      "version": "1.0.6",
      "date": "2025-09-11"
    },
    {
      "version": "1.0.7",
      "date": "2025-10-06"
    },
    {
      "version": "1.0.8",
      "date": "2026-04-16"
    }
  ],
  "_exports": [
    "eval_acc_parity",
    "eval_bs_parity",
    "eval_cond_acc_equality",
    "eval_eq_odds",
    "eval_eq_opp",
    "eval_neg_class_bal",
    "eval_neg_pred_parity",
    "eval_pos_class_bal",
    "eval_pos_pred_parity",
    "eval_pred_equality",
    "eval_stats_parity",
    "eval_treatment_equality",
    "get_fairness_metrics"
  ],
  "_datasets": [
    {
      "name": "mimic",
      "title": "Clinical data from the MIMIC-II database for a case study on indwelling arterial catheters",
      "object": "mimic",
      "class": [
        "data.frame"
      ],
      "fields": [
        "aline_flg",
        "icu_los_day",
        "hospital_los_day",
        "age",
        "gender_num",
        "weight_first",
        "bmi",
        "sapsi_first",
        "sofa_first",
        "service_unit",
        "service_num",
        "day_icu_intime",
        "day_icu_intime_num",
        "hour_icu_intime",
        "hosp_exp_flg",
        "icu_exp_flg",
        "day_28_flg",
        "mort_day_censored",
        "censor_flg",
        "sepsis_flg",
        "chf_flg",
        "afib_flg",
        "renal_flg",
        "liver_flg",
        "copd_flg",
        "cad_flg",
        "stroke_flg",
        "mal_flg",
        "resp_flg",
        "map_1st",
        "hr_1st",
        "temp_1st",
        "spo2_1st",
        "abg_count",
        "wbc_first",
        "hgb_first",
        "platelet_first",
        "sodium_first",
        "potassium_first",
        "tco2_first",
        "chloride_first",
        "bun_first",
        "creatinine_first",
        "po2_first",
        "pco2_first",
        "iv_day_1"
      ],
      "rows": 1776,
      "table": true,
      "tojson": true
    },
    {
      "name": "mimic_preprocessed",
      "title": "Preprocessed Clinical Data from the MIMIC-II Database",
      "object": "mimic_preprocessed",
      "class": [
        "data.frame"
      ],
      "fields": [
        "aline_flg",
        "icu_los_day",
        "hospital_los_day",
        "age",
        "gender_num",
        "weight_first",
        "sapsi_first",
        "sofa_first",
        "service_unit",
        "service_num",
        "day_icu_intime",
        "day_icu_intime_num",
        "hour_icu_intime",
        "day_28_flg",
        "chf_flg",
        "afib_flg",
        "renal_flg",
        "liver_flg",
        "copd_flg",
        "cad_flg",
        "stroke_flg",
        "mal_flg",
        "resp_flg",
        "map_1st",
        "hr_1st",
        "temp_1st",
        "spo2_1st",
        "abg_count",
        "wbc_first",
        "hgb_first",
        "platelet_first",
        "sodium_first",
        "potassium_first",
        "tco2_first",
        "chloride_first",
        "bun_first",
        "creatinine_first",
        "iv_day_1"
      ],
      "rows": 1776,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "eval_acc_parity",
      "title": "Examine Accuracy Parity of a Model",
      "topics": [
        "eval_acc_parity"
      ]
    },
    {
      "page": "eval_bs_parity",
      "title": "Examine Brier Score Parity of a Model",
      "topics": [
        "eval_bs_parity"
      ]
    },
    {
      "page": "eval_cond_acc_equality",
      "title": "Examine Conditional Use Accuracy Equality of a Model",
      "topics": [
        "eval_cond_acc_equality"
      ]
    },
    {
      "page": "eval_eq_odds",
      "title": "Examine Equalized Odds of a Predictive Model",
      "topics": [
        "eval_eq_odds"
      ]
    },
    {
      "page": "eval_eq_opp",
      "title": "Evaluate Equal Opportunity Compliance of a Predictive Model",
      "topics": [
        "eval_eq_opp"
      ]
    },
    {
      "page": "eval_neg_class_bal",
      "title": "Examine Balance for Negative Class of a Model",
      "topics": [
        "eval_neg_class_bal"
      ]
    },
    {
      "page": "eval_neg_pred_parity",
      "title": "Examine Negative Predictive Parity of a Model",
      "topics": [
        "eval_neg_pred_parity"
      ]
    },
    {
      "page": "eval_pos_class_bal",
      "title": "Examine Balance for the Positive Class of a Model",
      "topics": [
        "eval_pos_class_bal"
      ]
    },
    {
      "page": "eval_pos_pred_parity",
      "title": "Examine Positive Predictive Parity of a Model",
      "topics": [
        "eval_pos_pred_parity"
      ]
    },
    {
      "page": "eval_pred_equality",
      "title": "Examine Predictive Equality of a Model",
      "topics": [
        "eval_pred_equality"
      ]
    },
    {
      "page": "eval_stats_parity",
      "title": "Examine Statistical Parity of a Model",
      "topics": [
        "eval_stats_parity"
      ]
    },
    {
      "page": "eval_treatment_equality",
      "title": "Examine Treatment Equality of a Model",
      "topics": [
        "eval_treatment_equality"
      ]
    },
    {
      "page": "get_fairness_metrics",
      "title": "Compute Fairness Metrics for Binary Classification",
      "topics": [
        "get_fairness_metrics"
      ]
    },
    {
      "page": "mimic",
      "title": "Clinical data from the MIMIC-II database for a case study on indwelling arterial catheters",
      "topics": [
        "mimic"
      ]
    },
    {
      "page": "mimic_preprocessed",
      "title": "Preprocessed Clinical Data from the MIMIC-II Database",
      "topics": [
        "mimic_preprocessed"
      ]
    }
  ],
  "_readme": "https://github.com/jianhuig/fairmetrics/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "fairmetrics.Rmd",
      "filename": "fairmetrics.html",
      "title": "Assessing Model Fairness Across Binary Protected Attributes",
      "author": "Jianhui Gao, Benjamin Smith, Benson Chou, Jessica Gronsbell",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data Split and Model Construction",
        "Fairness Evaluation",
        "Conditional Fairness Evaluation",
        "Appendix: Confidence Interval Construction",
        "References"
      ],
      "created": "2025-05-01 15:35:33",
      "modified": "2025-08-22 20:33:34",
      "commits": 27
    }
  ],
  "_score": 6.767007363949804,
  "_indexed": true,
  "_nocasepkg": "fairmetrics",
  "_universes": [
    "jianhuig"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.8",
      "date": "2026-05-18T10:05:23.000Z",
      "distro": "noble",
      "commit": "e32f070bd668acef95c98c193c43ece3873e4105",
      "fileid": "e04cb3c8ab0c47ece2281d39cd68204b9870f381a6d7eed967918739a14590ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jianhuig/actions/runs/26026585934"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.8",
      "date": "2026-05-18T10:05:59.000Z",
      "distro": "noble",
      "commit": "e32f070bd668acef95c98c193c43ece3873e4105",
      "fileid": "c88e40d9af4ee42eb3cfee9b482e0e124fafb97f4e41e877517014364ec94623",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jianhuig/actions/runs/26026585934"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.8",
      "date": "2026-05-18T10:05:32.000Z",
      "commit": "e32f070bd668acef95c98c193c43ece3873e4105",
      "fileid": "938fee67337a5e00e5db776fd092636ac9776ed134f8bf9d6b2b0d6889fa170b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jianhuig/actions/runs/26026585934"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.8",
      "date": "2026-05-18T10:05:35.000Z",
      "commit": "e32f070bd668acef95c98c193c43ece3873e4105",
      "fileid": "bf6052b5cb28230563c193a3468ff67e19258b496199227ac819e62761aebe6b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jianhuig/actions/runs/26026585934"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.8",
      "date": "2026-05-18T10:04:41.000Z",
      "commit": "e32f070bd668acef95c98c193c43ece3873e4105",
      "fileid": "9ccbdd4cca4d4fed4dd6a04232fc6cd06205e1baa5c5e782cd995023e46f339a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jianhuig/actions/runs/26026585934"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.8",
      "date": "2026-05-18T10:04:29.000Z",
      "commit": "e32f070bd668acef95c98c193c43ece3873e4105",
      "fileid": "b48d30a74324d5f86e58a2bc2ff7caff6717c662349ab0adb84f6f88e8adcd03",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jianhuig/actions/runs/26026585934"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.8",
      "date": "2026-05-18T10:04:46.000Z",
      "commit": "e32f070bd668acef95c98c193c43ece3873e4105",
      "fileid": "05a68bd84edc0d98f4a9b699fce2312a5404bd196c5babca30ba0b401000fbc4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jianhuig/actions/runs/26026585934"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.8",
      "date": "2026-06-02T15:55:17.000Z",
      "commit": "e32f070bd668acef95c98c193c43ece3873e4105",
      "fileid": "0e767d6de35d583631013a3d8d16aa51db08244e446479be7a967974eb484c1b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jianhuig/actions/runs/26026585934"
    }
  ]
}