{
  "_id": "6ac79ae1de46216d5edd2adc",
  "Package": "fairadapt",
  "Title": "Fair Data Adaptation with Quantile Preservation",
  "Description": "An implementation of the fair data adaptation with\nquantile preservation described in Plecko & Meinshausen (JMLR\n2020, 21(242), 1-44). The adaptation procedure uses the\nspecified causal graph to pre-process the given training and\ntesting data in such a way to remove the bias caused by the\nprotected attribute. The procedure uses tree ensembles for\nquantile regression. Instructions for using the methods are\nfurther elaborated in the corresponding JSS manuscript, see\n<doi:10.18637/jss.v110.i04>.",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(given = \"Drago\",\nfamily = \"Plecko\",\nrole = c(\"aut\", \"cre\"),\nemail = \"www.plecko@gmail.com\"),\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.3.1",
  "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": "2024-09-03 12:33:53 UTC",
  "RemoteUrl": "https://github.com/dplecko/fairadapt",
  "RemoteRef": "HEAD",
  "RemoteSha": "d766469f1b79b2bcda911d13742ad0f45861e119",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-08 13:26:31 UTC",
    "User": "root"
  },
  "Author": "Drago Plecko [aut, cre],\nNicolas Bennett [aut]",
  "Maintainer": "Drago Plecko <www.plecko@gmail.com>",
  "_user": "dplecko",
  "_type": "src",
  "_file": "fairadapt_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/93931cd86995cce7115d7aa116344039112651af6bd8d185d340f14f747bccee",
  "_filesize": 3051426,
  "_sha256": "93931cd86995cce7115d7aa116344039112651af6bd8d185d340f14f747bccee",
  "_expires": "2027-01-16T13:30:01.000Z",
  "_created": "2026-10-08T13:26:31.000Z",
  "_published": "2026-10-08T13:30:07.093Z",
  "_buildurl": "https://github.com/r-universe/dplecko/actions/runs/37783904158",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113335394918,
      "time": 150,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11554080854"
    },
    {
      "job": 113335394957,
      "time": 158,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11553547787"
    },
    {
      "job": 113335395085,
      "time": 144,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11553841108"
    },
    {
      "job": 113335395244,
      "time": 158,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11554165728"
    },
    {
      "job": 113333774916,
      "time": 212,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11553850617"
    },
    {
      "job": 113335394895,
      "time": 122,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11552964961"
    },
    {
      "job": 113335395058,
      "time": 120,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11554245381"
    },
    {
      "job": 113335395074,
      "time": 127,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11553742335"
    },
    {
      "job": 113335395010,
      "time": 108,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11554190414"
    }
  ],
  "_upstream": "https://github.com/dplecko/fairadapt",
  "_commit": {
    "id": "d766469f1b79b2bcda911d13742ad0f45861e119",
    "author": "Drago Plecko <www.plecko@gmail.com>",
    "committer": "Drago Plecko <www.plecko@gmail.com>",
    "message": "comments on the notes\n",
    "time": 1725366833
  },
  "_maintainer": {
    "name": "Drago Plecko",
    "email": "www.plecko@gmail.com",
    "login": "dplecko",
    "description": "",
    "uuid": 43063243
  },
  "_distro": "resolute",
  "_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"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    }
  ],
  "_owner": "dplecko",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "causal-inference",
    "fairness",
    "machine-learning"
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "dplecko",
      "count": 68,
      "uuid": 43063243
    },
    {
      "user": "nbenn",
      "count": 58,
      "uuid": 3158446
    }
  ],
  "_userbio": {
    "uuid": 43063243,
    "type": "user",
    "name": "dplecko",
    "followers": 16
  },
  "_downloads": {
    "count": 522,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fairadapt"
  },
  "_devurl": "https://github.com/dplecko/fairadapt",
  "_searchresults": 57,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fairadapt.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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": "autoplot.fairadapt",
      "title": "Plotting data before and after adaptation",
      "topics": [
        "autoplot.fairadapt"
      ]
    },
    {
      "page": "compas",
      "title": "COMPAS dataset",
      "topics": [
        "compas"
      ]
    },
    {
      "page": "computeQuants",
      "title": "Compute quantiles generic for the quantile learning step",
      "topics": [
        "computeQuants"
      ]
    },
    {
      "page": "fairadapt",
      "title": "Fair data adaptation (fairadapt)",
      "topics": [
        "fairadapt",
        "print.fairadapt"
      ]
    },
    {
      "page": "fairadaptBoot",
      "title": "Fairadapt boostrap wrapper",
      "topics": [
        "fairadaptBoot",
        "print.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": "plot.fairadapt",
      "title": "Plotting data before and after adaptation",
      "topics": [
        "plot.fairadapt"
      ]
    },
    {
      "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": "summary.fairadapt",
      "title": "Summarizing fairadapt fit",
      "topics": [
        "print.summary.fairadapt",
        "summary.fairadapt"
      ]
    },
    {
      "page": "summary.fairadaptBoot",
      "title": "Summarizing fairadaptBoot fit",
      "topics": [
        "print.summary.fairadaptBoot",
        "summary.fairadaptBoot"
      ]
    },
    {
      "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 Preprocessing",
      "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": "2024-09-02 16:17:38",
      "commits": 50
    }
  ],
  "_score": 4.7558748556724915,
  "_indexed": true,
  "_nocasepkg": "fairadapt",
  "_universes": [
    "dplecko"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-08T13:28:55.000Z",
      "distro": "resolute",
      "commit": "d766469f1b79b2bcda911d13742ad0f45861e119",
      "fileid": "https://r2.ropensci.org/28f0117781cf725dcfa76200cd8e5ccbdc125f644322071dc4e05b2523f6c6b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/37783904158"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-08T13:28:53.000Z",
      "distro": "resolute",
      "commit": "d766469f1b79b2bcda911d13742ad0f45861e119",
      "fileid": "https://r2.ropensci.org/29c46025c7c43508ec1787631cdc242ff0082eed9675776a6cfbbf34fcf8da0d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/37783904158"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-08T13:28:43.000Z",
      "commit": "d766469f1b79b2bcda911d13742ad0f45861e119",
      "fileid": "https://r2.ropensci.org/9d224c5930c3aabb22aa01a1b615a98495b7e36e7640150bc76fbb962275c8d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/37783904158"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-08T13:28:46.000Z",
      "commit": "d766469f1b79b2bcda911d13742ad0f45861e119",
      "fileid": "https://r2.ropensci.org/38c2acb0484ed68886be6bc5ce4e84a05915359e631729a2f95c7d70c38b3380",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/37783904158"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-08T13:28:55.000Z",
      "commit": "d766469f1b79b2bcda911d13742ad0f45861e119",
      "fileid": "https://r2.ropensci.org/f7883235c1e4ca642afd84127427789344b09bc8377563b9e24be9ef2b114bff",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/37783904158"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T13:28:00.000Z",
      "commit": "d766469f1b79b2bcda911d13742ad0f45861e119",
      "fileid": "https://r2.ropensci.org/959f87a205a6cdedd216aed22f9154335eefaf6b2dfafc5f8165477dc6252bce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/37783904158"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T13:28:12.000Z",
      "commit": "d766469f1b79b2bcda911d13742ad0f45861e119",
      "fileid": "https://r2.ropensci.org/c3675f6583d303050873110bdcb4afa03e634e67ea28bcfab783745de890aa40",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/37783904158"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T13:27:49.000Z",
      "commit": "d766469f1b79b2bcda911d13742ad0f45861e119",
      "fileid": "https://r2.ropensci.org/7647d77d641780d5e4e8fd1361a37cbd8d3f66fe4e8fe29c097386a004461b37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dplecko/actions/runs/37783904158"
    }
  ]
}