{
  "_id": "6a103429acfb0bcc41c98d2e",
  "Package": "fairness",
  "Title": "Algorithmic Fairness Metrics",
  "Version": "1.2.3",
  "Authors@R": "c(person('Nikita', 'Kozodoi', email = 'n.kozodoi@icloud.com', role = c('aut', 'cre')),\nperson('Tibor', 'V. Varga', email = 'tirgit@hotmail.com', role = c('aut'), comment = c(ORCID = '0000-0002-2383-699X')))",
  "Maintainer": "Nikita Kozodoi <n.kozodoi@icloud.com>",
  "Description": "Offers calculation, visualization and comparison of\nalgorithmic fairness metrics. Fair machine learning is an\nemerging topic with the overarching aim to critically assess\nwhether ML algorithms reinforce existing social biases. Unfair\nalgorithms can propagate such biases and produce predictions\nwith a disparate impact on various sensitive groups of\nindividuals (defined by sex, gender, ethnicity, religion,\nincome, socioeconomic status, physical or mental disabilities).\nFair algorithms possess the underlying foundation that these\ngroups should be treated similarly or have similar prediction\noutcomes. The fairness R package offers the calculation and\ncomparisons of commonly and less commonly used fairness metrics\nin population subgroups. These methods are described by Calders\nand Verwer (2010) <doi:10.1007/s10618-010-0190-x>, Chouldechova\n(2017) <doi:10.1089/big.2016.0047>, Feldman et al. (2015)\n<doi:10.1145/2783258.2783311> , Friedler et al. (2018)\n<doi:10.1145/3287560.3287589> and Zafar et al. (2017)\n<doi:10.1145/3038912.3052660>. The package also offers\nconvenient visualizations to help understand fairness metrics.",
  "License": "MIT + file LICENSE",
  "Language": "en-US",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.0",
  "URL": "https://www.kozodoi.me/blog/algorithmic-fairness-in-r",
  "BugReports": "https://github.com/kozodoi/fairness/issues",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://kozodoi.r-universe.dev",
  "Date/Publication": "2025-12-13 17:58:12 UTC",
  "RemoteUrl": "https://github.com/kozodoi/fairness",
  "RemoteRef": "HEAD",
  "RemoteSha": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-12 07:56:41 UTC",
    "User": "root"
  },
  "Author": "Nikita Kozodoi [aut, cre],\nTibor V. Varga [aut] (ORCID: <https://orcid.org/0000-0002-2383-699X>)",
  "MD5sum": "aee8b98dbc8726d3ee0a1630eb8bd494",
  "_user": "kozodoi",
  "_type": "src",
  "_file": "fairness_1.2.3.tar.gz",
  "_fileid": "ae51eb476abcb8f4239e47cca52b21de0b44491c686e4f6ac63d1583d0ae5044",
  "_filesize": 734577,
  "_sha256": "ae51eb476abcb8f4239e47cca52b21de0b44491c686e4f6ac63d1583d0ae5044",
  "_created": "2026-05-12T07:56:41.000Z",
  "_published": "2026-05-22T10:47:05.579Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77364349311,
      "time": 212,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6938732615"
    },
    {
      "job": 77364349616,
      "time": 204,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938728486"
    },
    {
      "job": 77364349661,
      "time": 169,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6938712387"
    },
    {
      "job": 77364349679,
      "time": 258,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938725006"
    },
    {
      "job": 77364348680,
      "time": 231,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938665431"
    },
    {
      "job": 77364348737,
      "time": 144,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158669369"
    },
    {
      "job": 77364349578,
      "time": 153,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": ""
    },
    {
      "job": 77364349752,
      "time": 144,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6938710652"
    },
    {
      "job": 77364349251,
      "time": 163,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938716902"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kozodoi/actions/runs/25721144000",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/kozodoi/fairness",
  "_commit": {
    "id": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
    "author": "Kozodoi <n.kozodoi@icloud.com>",
    "committer": "Kozodoi <n.kozodoi@icloud.com>",
    "message": "🐛 Fix broken link\n",
    "time": 1765648692
  },
  "_maintainer": {
    "name": "Nikita Kozodoi",
    "email": "n.kozodoi@icloud.com",
    "login": "kozodoi",
    "linkedin": "in/kozodoi",
    "twitter": "@n_kozodoi",
    "uuid": 18618077
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "caret",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "role": "Imports"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "kozodoi",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-50",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "1.2.3",
      "date": "2025-12-13"
    }
  ],
  "_topics": [
    "algorithmic-discrimination",
    "algorithmic-fairness",
    "discrimination",
    "disparate-impact",
    "fairness",
    "fairness-ai",
    "fairness-ml",
    "machine-learning"
  ],
  "_stars": 32,
  "_contributors": [
    {
      "user": "kozodoi",
      "count": 118,
      "uuid": 18618077
    },
    {
      "user": "tirgit",
      "count": 57,
      "uuid": 12730999
    },
    {
      "user": "njvdvelde",
      "count": 1,
      "uuid": 62008987
    }
  ],
  "_userbio": {
    "uuid": 18618077,
    "type": "user",
    "name": "Nikita Kozodoi",
    "description": "AI scientist working on the frontier of research & business"
  },
  "_downloads": {
    "count": 475,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fairness"
  },
  "_devurl": "https://github.com/kozodoi/fairness",
  "_searchresults": 91,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fairness.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kozodoi/fairness",
  "_realowner": "kozodoi",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2019-09-27"
    },
    {
      "version": "1.1.0",
      "date": "2020-05-01"
    },
    {
      "version": "1.1.1",
      "date": "2020-07-26"
    },
    {
      "version": "1.2.0",
      "date": "2020-11-19"
    },
    {
      "version": "1.2.1",
      "date": "2021-03-31"
    },
    {
      "version": "1.2.2",
      "date": "2021-04-14"
    },
    {
      "version": "1.2.3",
      "date": "2025-12-14"
    }
  ],
  "_exports": [
    "acc_parity",
    "dem_parity",
    "equal_odds",
    "fnr_parity",
    "fpr_parity",
    "mcc_parity",
    "npv_parity",
    "pred_rate_parity",
    "prop_parity",
    "roc_parity",
    "spec_parity"
  ],
  "_datasets": [
    {
      "name": "compas",
      "title": "Modified COMPAS dataset",
      "object": "compas",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Two_yr_Recidivism",
        "Number_of_Priors",
        "Age_Above_FourtyFive",
        "Age_Below_TwentyFive",
        "Female",
        "Misdemeanor",
        "ethnicity",
        "probability",
        "predicted"
      ],
      "rows": 6172,
      "table": true,
      "tojson": true
    },
    {
      "name": "germancredit",
      "title": "Modified german credit dataset",
      "object": "germancredit",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Account_status",
        "Duration",
        "Credit_history",
        "Purpose",
        "Amount",
        "Savings",
        "Employment",
        "Installment_rate",
        "Guarantors",
        "Resident_since",
        "Property",
        "Age",
        "Other_plans",
        "Housing",
        "Num_credits",
        "Job",
        "People_maintenance",
        "Phone",
        "Foreign",
        "BAD",
        "Female",
        "probability",
        "predicted"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "acc_parity",
      "title": "Accuracy parity",
      "topics": [
        "acc_parity"
      ]
    },
    {
      "page": "compas",
      "title": "Modified COMPAS dataset",
      "topics": [
        "compas"
      ]
    },
    {
      "page": "dem_parity",
      "title": "Demographic parity",
      "topics": [
        "dem_parity"
      ]
    },
    {
      "page": "equal_odds",
      "title": "Equalized Odds",
      "topics": [
        "equal_odds"
      ]
    },
    {
      "page": "fairness",
      "title": "fairness: Algorithmic Fairness Metrics",
      "topics": [
        "fairness"
      ]
    },
    {
      "page": "fnr_parity",
      "title": "False Negative Rate parity",
      "topics": [
        "fnr_parity"
      ]
    },
    {
      "page": "fpr_parity",
      "title": "False Positive Rate parity",
      "topics": [
        "fpr_parity"
      ]
    },
    {
      "page": "germancredit",
      "title": "Modified german credit dataset",
      "topics": [
        "germancredit"
      ]
    },
    {
      "page": "mcc_parity",
      "title": "Matthews Correlation Coefficient parity",
      "topics": [
        "mcc_parity"
      ]
    },
    {
      "page": "npv_parity",
      "title": "Negative Predictive Value parity",
      "topics": [
        "npv_parity"
      ]
    },
    {
      "page": "pred_rate_parity",
      "title": "Predictive Rate Parity",
      "topics": [
        "pred_rate_parity"
      ]
    },
    {
      "page": "prop_parity",
      "title": "Proportional parity",
      "topics": [
        "prop_parity"
      ]
    },
    {
      "page": "roc_parity",
      "title": "ROC AUC parity",
      "topics": [
        "roc_parity"
      ]
    },
    {
      "page": "spec_parity",
      "title": "Specificity parity",
      "topics": [
        "spec_parity"
      ]
    }
  ],
  "_readme": "https://github.com/kozodoi/fairness/raw/HEAD/README.md",
  "_rundeps": [
    "caret",
    "class",
    "cli",
    "clock",
    "codetools",
    "cpp11",
    "data.table",
    "diagram",
    "digest",
    "dplyr",
    "e1071",
    "farver",
    "foreach",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gower",
    "gtable",
    "hardhat",
    "ipred",
    "isoband",
    "iterators",
    "KernSmooth",
    "labeling",
    "lattice",
    "lava",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "ModelMetrics",
    "nlme",
    "nnet",
    "numDeriv",
    "parallelly",
    "pillar",
    "pkgconfig",
    "plyr",
    "pROC",
    "prodlim",
    "progressr",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "recipes",
    "reshape2",
    "rlang",
    "rpart",
    "S7",
    "scales",
    "shape",
    "sparsevctrs",
    "SQUAREM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "fairness.Rmd",
      "filename": "fairness.html",
      "title": "Tutorial to the fairness R package",
      "author": "Tibor V. Varga & Nikita Kozodoi",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "Data description",
        "An outlook on the confusion matrix",
        "Fairness metrics functions",
        "Demographic parity",
        "Proportional parity",
        "Equalized odds",
        "Predictive rate parity",
        "Accuracy parity",
        "False negative rate parity",
        "False positive rate parity",
        "Negative predictive value parity",
        "Specificity parity",
        "ROC AUC comparison",
        "Matthews correlation coefficient comparison",
        "Output and visualizations",
        "Closing words"
      ],
      "created": "2019-09-02 08:33:42",
      "modified": "2025-12-13 17:58:12",
      "commits": 17
    }
  ],
  "_score": 6.464191370641,
  "_indexed": true,
  "_nocasepkg": "fairness",
  "_universes": [
    "kozodoi"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-04-12T07:22:19.000Z",
      "commit": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
      "fileid": "6ad6b2028ba0c9d2fd1b654854ab19364959fbebfe291af97bc8af3175b89eab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kozodoi/actions/runs/24301287664"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-05-12T07:59:29.000Z",
      "distro": "noble",
      "commit": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
      "fileid": "3fe1c7c96df7c5287ab946246f178e45d78a2adc6b10a9d70dbd647962d8d3ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kozodoi/actions/runs/25721144000"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-05-12T07:59:19.000Z",
      "distro": "noble",
      "commit": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
      "fileid": "49aba3a7d1575094d0dfda619dd95392187a00342a8bcb9b379167ec87631de4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kozodoi/actions/runs/25721144000"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-05-12T07:58:50.000Z",
      "commit": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
      "fileid": "8511fbf375c6fcf5fae8be93eb5b3d070e1c44665e1c391d318c59d2c5912375",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kozodoi/actions/runs/25721144000"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-05-12T07:59:19.000Z",
      "commit": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
      "fileid": "5765f6c0c348abfd3b6ec664d1be92fc1d459c2442d36eb89847c3b7ad4e9d9a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kozodoi/actions/runs/25721144000"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-05-12T07:58:15.000Z",
      "commit": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
      "fileid": "1a33280c45047b977f0d77e24b1c9b005de09111bec9f1544ea040c11490fd66",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kozodoi/actions/runs/25721144000"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-05-12T07:58:43.000Z",
      "commit": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
      "fileid": "868e58af517f3498230b50a13a7f8a1ab4b9e8d83c2312f10f8fd3a9b43b4205",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kozodoi/actions/runs/25721144000"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.3",
      "date": "2026-05-22T10:46:47.000Z",
      "commit": "be7b00726984ff7a221ce0a558cd87c1ddd70549",
      "fileid": "198d5e652abd2ec03b97072ac741c92fb7ea28e73616fa2ede3aba65c667b045",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kozodoi/actions/runs/25721144000"
    }
  ]
}