{
  "_id": "6a1029f9acfb0bcc41c91ad6",
  "Package": "fairadapt",
  "Title": "Fair Data Adaptation with Quantile Preservation",
  "Description": "An implementation of the fair data adaptation with\nquantile preservation described in Plecko & Meinshausen (2019)\n<arXiv:1911.06685>. The adaptation procedure uses the specified\ncausal graph to pre-process the given training and testing data\nin such a way to remove the bias caused by the protected\nattribute. The procedure uses tree ensembles for quantile\nregression.",
  "Version": "0.2.6",
  "Authors@R": "c(\nperson(given = \"Drago\",\nfamily = \"Plecko\",\nrole = c(\"aut\", \"cre\"),\nemail = \"drago.plecko@stat.math.ethz.ch\"),\nperson(given = \"Nicolas\",\nfamily = \"Bennett\",\nrole = \"aut\",\nemail = \"nicolas.bennett@stat.math.ethz.ch\")\n)",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "URL": "https://github.com/dplecko/fairadapt",
  "BugReports": "https://github.com/dplecko/fairadapt/issues",
  "RoxygenNote": "7.2.3",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libglpk-dev libxml2-dev",
  "Repository": "https://dplecko.r-universe.dev",
  "Date/Publication": "2023-08-18 10:04:04 UTC",
  "RemoteUrl": "https://github.com/dplecko/fairadapt",
  "RemoteRef": "HEAD",
  "RemoteSha": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-13 07:19:28 UTC",
    "User": "root"
  },
  "Author": "Drago Plecko [aut, cre],\nNicolas Bennett [aut]",
  "Maintainer": "Drago Plecko <drago.plecko@stat.math.ethz.ch>",
  "MD5sum": "3c7fba83e334c08e028e803a2db38ec7",
  "_user": "dplecko",
  "_type": "src",
  "_file": "fairadapt_0.2.6.tar.gz",
  "_fileid": "64ae97e30bd6a3dd5170436374092206765b16deda1b8776694d8761aa012d70",
  "_filesize": 3065291,
  "_sha256": "64ae97e30bd6a3dd5170436374092206765b16deda1b8776694d8761aa012d70",
  "_created": "2026-05-13T07:19:28.000Z",
  "_published": "2026-05-22T10:03:37.177Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77357956788,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6963951948"
    },
    {
      "job": 77357957109,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6963955642"
    },
    {
      "job": 77357957027,
      "time": 238,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6963961004"
    },
    {
      "job": 77357957002,
      "time": 210,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6963953332"
    },
    {
      "job": 77357956706,
      "time": 215,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6963902439"
    },
    {
      "job": 77357956294,
      "time": 154,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157902363"
    },
    {
      "job": 77357957000,
      "time": 123,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6963938131"
    },
    {
      "job": 77357957029,
      "time": 109,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6963934560"
    },
    {
      "job": 77357957125,
      "time": 116,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6963936416"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dplecko/actions/runs/25784352683",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/dplecko/fairadapt",
  "_commit": {
    "id": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
    "author": "Drago Plecko <www.plecko@gmail.com>",
    "committer": "Drago Plecko <www.plecko@gmail.com>",
    "message": "version 0.2.6\n",
    "time": 1692353044
  },
  "_maintainer": {
    "name": "Drago Plecko",
    "email": "drago.plecko@stat.math.ethz.ch"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "ranger",
      "version": ">= 0.13.1",
      "role": "Imports"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "quantreg",
      "role": "Imports"
    },
    {
      "package": "qrnn",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "cowplot",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.3",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rticles",
      "role": "Suggests"
    },
    {
      "package": "mvtnorm",
      "role": "Suggests"
    },
    {
      "package": "magick",
      "role": "Suggests"
    },
    {
      "package": "ggraph",
      "role": "Suggests"
    },
    {
      "package": "pdftools",
      "role": "Suggests"
    },
    {
      "package": "microbenchmark",
      "role": "Suggests"
    },
    {
      "package": "xtable",
      "role": "Suggests"
    }
  ],
  "_owner": "dplecko",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "causal-inference",
    "fairness",
    "machine-learning"
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "dplecko",
      "count": 63,
      "uuid": 43063243
    },
    {
      "user": "nbenn",
      "count": 58,
      "uuid": 3158446
    }
  ],
  "_userbio": {
    "uuid": 43063243,
    "type": "user",
    "name": "dplecko"
  },
  "_downloads": {
    "count": 255,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fairadapt"
  },
  "_devurl": "https://github.com/dplecko/fairadapt",
  "_searchresults": 50,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fairadapt.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/dplecko/fairadapt",
  "_realowner": "dplecko",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2019-11-28"
    },
    {
      "version": "0.2.0",
      "date": "2021-07-28"
    },
    {
      "version": "0.2.1",
      "date": "2021-10-19"
    },
    {
      "version": "0.2.2",
      "date": "2022-04-28"
    },
    {
      "version": "0.2.3",
      "date": "2022-06-22"
    },
    {
      "version": "0.2.4",
      "date": "2022-07-01"
    },
    {
      "version": "0.2.5",
      "date": "2023-03-23"
    },
    {
      "version": "0.2.6",
      "date": "2023-08-18"
    },
    {
      "version": "0.2.7",
      "date": "2023-10-09"
    },
    {
      "version": "1.0.0",
      "date": "2024-09-06"
    }
  ],
  "_exports": [
    "adaptedData",
    "computeQuants",
    "fairadapt",
    "fairadaptBoot",
    "fairTwins",
    "graphModel",
    "linearQuants",
    "mcqrnnQuants",
    "quantFit",
    "rangerQuants",
    "visualizeGraph"
  ],
  "_datasets": [
    {
      "name": "compas",
      "title": "COMPAS dataset.",
      "object": "compas",
      "class": [
        "data.frame"
      ],
      "fields": [
        "sex",
        "age",
        "race",
        "juv_fel_count",
        "juv_misd_count",
        "juv_other_count",
        "priors_count",
        "c_charge_degree",
        "two_year_recid"
      ],
      "rows": 7214,
      "table": true,
      "tojson": true
    },
    {
      "name": "gov_census",
      "title": "Census information of US government employees.",
      "object": "gov_census",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "sex",
        "age",
        "race",
        "hispanic_origin",
        "citizenship",
        "nativity",
        "marital",
        "family_size",
        "children",
        "education_level",
        "english_level",
        "salary",
        "hours_worked",
        "weeks_worked",
        "occupation",
        "industry",
        "economic_region"
      ],
      "rows": 204309,
      "table": true,
      "tojson": true
    },
    {
      "name": "uni_admission",
      "title": "University admission data of 1,000 students.",
      "object": "uni_admission",
      "class": [
        "data.frame"
      ],
      "fields": [
        "gender",
        "edu",
        "test",
        "score"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "adaptedData",
      "title": "Convenience function for returning adapted data",
      "topics": [
        "adaptedData",
        "adaptedData.fairadapt",
        "adaptedData.fairadaptBoot"
      ]
    },
    {
      "page": "compas",
      "title": "COMPAS dataset.",
      "topics": [
        "compas"
      ]
    },
    {
      "page": "computeQuants",
      "title": "Compute Quantiles generic for the Quantile Learning step.",
      "topics": [
        "computeQuants"
      ]
    },
    {
      "page": "fairadapt",
      "title": "Fairadapt",
      "topics": [
        "fairadapt"
      ]
    },
    {
      "page": "fairadaptBoot",
      "title": "Fairadapt Boostrap wrapper",
      "topics": [
        "fairadaptBoot"
      ]
    },
    {
      "page": "fairTwins",
      "title": "Fair Twin Inspection convenience function.",
      "topics": [
        "fairTwins"
      ]
    },
    {
      "page": "gov_census",
      "title": "Census information of US government employees.",
      "topics": [
        "gov_census"
      ]
    },
    {
      "page": "graphModel",
      "title": "Obtaining the graphical causal model (GCM)",
      "topics": [
        "graphModel"
      ]
    },
    {
      "page": "predict.fairadapt",
      "title": "Prediction function for new data from a saved 'fairadapt' object.",
      "topics": [
        "predict.fairadapt"
      ]
    },
    {
      "page": "predict.fairadaptBoot",
      "title": "Prediction function for new data from a saved 'fairadaptBoot' object.",
      "topics": [
        "predict.fairadaptBoot"
      ]
    },
    {
      "page": "quantFit",
      "title": "Quality of quantile fit statistics.",
      "topics": [
        "quantFit"
      ]
    },
    {
      "page": "rangerQuants",
      "title": "Quantile Engine Constructor for the Quantile Learning step.",
      "topics": [
        "linearQuants",
        "mcqrnnQuants",
        "rangerQuants"
      ]
    },
    {
      "page": "uni_admission",
      "title": "University admission data of 1,000 students.",
      "topics": [
        "uni_admission"
      ]
    },
    {
      "page": "visualizeGraph",
      "title": "Visualize Graphical Causal Model",
      "topics": [
        "visualizeGraph"
      ]
    }
  ],
  "_readme": "https://github.com/dplecko/fairadapt/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "cli",
    "cowplot",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "igraph",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "pkgconfig",
    "qrnn",
    "quantreg",
    "R6",
    "ranger",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "SparseM",
    "survival",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "jss.Rmd",
      "filename": "jss.html",
      "title": "fairadapt: Causal Reasoning for Fair Data Pre-processing",
      "author": "Drago Plečko, Nicolas Bennett, Nicolai Meinshausen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Definitions of fairness",
        "Fairness tasks",
        "A causal approach",
        "Novelty in the package",
        "Methodology",
        "University admission example",
        "Structural causal models",
        "Markovian SCM formulation",
        "Implementation",
        "Specifying the graphical model",
        "Quantile learning step",
        "Quantile methods",
        "Influencing the fit",
        "Computational speed",
        "Fit quality",
        "Extending to custom methods",
        "Fair-twin inspection",
        "Uncertainty quantification",
        "Analyzing the uncertainty",
        "Decision-maker analysis",
        "Individual analysis",
        "Illustration",
        "Extensions",
        "Adding resolving variables",
        "Semi-Markovian and topological ordering variant",
        "Questions of identifiability",
        "Future avenues to be explored"
      ],
      "created": "2021-01-28 16:11:38",
      "modified": "2023-08-18 10:04:04",
      "commits": 47
    }
  ],
  "_score": 4.698970004336019,
  "_indexed": true,
  "_nocasepkg": "fairadapt",
  "_universes": [
    "dplecko"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.6",
      "date": "2026-05-13T07:21:54.000Z",
      "distro": "noble",
      "commit": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
      "fileid": "43843f72f3d9b22d838bf3b4d8f26beaec942d68890d97ab9532d3dbac02b0d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/25784352683"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.6",
      "date": "2026-05-13T07:22:08.000Z",
      "distro": "noble",
      "commit": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
      "fileid": "f7a214fdeb8e0857660758181fff47be011c9666464d6da339b8d3fb76b8a12d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/25784352683"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.6",
      "date": "2026-05-13T07:22:28.000Z",
      "commit": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
      "fileid": "94534ab10301bb1e5ce24761d3f58ead4046e0a1047d2572cc5ab80b00ed74c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/25784352683"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.6",
      "date": "2026-05-13T07:21:45.000Z",
      "commit": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
      "fileid": "1bebb5f7a7ac05a557c360aad7643dfb1b836d9064f9d880686be46a7ada0a88",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/25784352683"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.6",
      "date": "2026-05-13T07:20:58.000Z",
      "commit": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
      "fileid": "6d3b0eb6cef82a8bf0a80d2a04c91ba3163d2a12e08fc525e068c68b8b394889",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/25784352683"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.6",
      "date": "2026-05-13T07:20:48.000Z",
      "commit": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
      "fileid": "bd5d628ce5a28ee871f5bb46726b7eccff5517c9c30082896253899de1647113",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/25784352683"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.6",
      "date": "2026-05-13T07:20:53.000Z",
      "commit": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
      "fileid": "8a2ab608687b06ff81ab14b95b9f06aa19424a11586312612a7d6f44c6187362",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/25784352683"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.6",
      "date": "2026-05-22T10:03:17.000Z",
      "commit": "2171b98f7b8de32a79786f64e3de3499f97c4ab8",
      "fileid": "0b77db08b7837deded512061dbcff177a638a03afa0a91334b983fe87ddf9e1c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/25784352683"
    }
  ]
}