{
  "_id": "6a1060d9acfb0bcc41ca764e",
  "Package": "fairml",
  "Type": "Package",
  "Title": "Fair Models in Machine Learning",
  "Version": "0.9.1",
  "Date": "2026-03-07",
  "Authors@R": "person(given = \"Marco\", family = \"Scutari\", role = c(\"aut\", \"cre\"),\nemail = \"scutari@bnlearn.com\")",
  "Maintainer": "Marco Scutari <scutari@bnlearn.com>",
  "Description": "Fair machine learning regression models which take\nsensitive attributes into account in model estimation.\nCurrently implementing Komiyama et al. (2018)\n<http://proceedings.mlr.press/v80/komiyama18a/komiyama18a.pdf>,\nZafar et al. (2019)\n<https://www.jmlr.org/papers/volume20/18-262/18-262.pdf> and my\nown approach from Scutari, Panero and Proissl (2022)\n<doi:10.1007/s11222-022-10143-w> that uses ridge regression to\nenforce fairness.",
  "License": "MIT + file LICENSE",
  "LazyData": "yes",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-08 08:09:17 UTC",
    "User": "root"
  },
  "Author": "Marco Scutari [aut, cre]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-03-09 08:50:02 UTC",
  "RemoteUrl": "https://github.com/cran/fairml",
  "RemoteRef": "HEAD",
  "RemoteSha": "9f4156f9208a4df1878da550dfd79f275069f59a",
  "MD5sum": "4769123424ab19abeffe8c046d2138ef",
  "_user": "cran",
  "_type": "src",
  "_file": "fairml_0.9.1.tar.gz",
  "_fileid": "3829f3c0a938eca948df406b7b95f90f164ca8af7140e17431e5f8bd3ac2b366",
  "_filesize": 2646705,
  "_sha256": "3829f3c0a938eca948df406b7b95f90f164ca8af7140e17431e5f8bd3ac2b366",
  "_created": "2026-05-08T08:09:17.000Z",
  "_published": "2026-05-22T13:57:45.960Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77394421736,
      "time": 154,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6874765468"
    },
    {
      "job": 77394421532,
      "time": 135,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6874762491"
    },
    {
      "job": 77394420464,
      "time": 184,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6874726399"
    },
    {
      "job": 77394420833,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7162286980"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/25544477615",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/fairml",
  "_commit": {
    "id": "9f4156f9208a4df1878da550dfd79f275069f59a",
    "author": "Marco Scutari <scutari@bnlearn.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.9.1\n",
    "time": 1773046202
  },
  "_maintainer": {
    "name": "Marco Scutari",
    "email": "scutari@bnlearn.com"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "lattice",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "cccp",
      "role": "Suggests"
    },
    {
      "package": "CVXR",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-11",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.9.1",
      "date": "2026-03-09"
    }
  ],
  "_stars": 1,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 3655,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fairml"
  },
  "_searchresults": 31,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fairml.html",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.2",
      "date": "2020-08-06"
    },
    {
      "version": "0.3",
      "date": "2020-09-09"
    },
    {
      "version": "0.4",
      "date": "2021-04-15"
    },
    {
      "version": "0.5",
      "date": "2021-06-16"
    },
    {
      "version": "0.6",
      "date": "2021-08-09"
    },
    {
      "version": "0.6.1",
      "date": "2022-01-24"
    },
    {
      "version": "0.6.2",
      "date": "2022-04-14"
    },
    {
      "version": "0.6.3",
      "date": "2022-05-09"
    },
    {
      "version": "0.7",
      "date": "2022-09-10"
    },
    {
      "version": "0.8",
      "date": "2023-05-14"
    },
    {
      "version": "0.9",
      "date": "2025-04-29"
    },
    {
      "version": "0.9.1",
      "date": "2026-03-09"
    }
  ],
  "_exports": [
    "cv.folds",
    "cv.loss",
    "cv.unfairness",
    "fairml.cv",
    "fairness.profile.plot",
    "fgrrm",
    "frrm",
    "nclm",
    "zlm",
    "zlm.orig",
    "zlrm",
    "zlrm.orig"
  ],
  "_datasets": [
    {
      "name": "adult",
      "title": "Census Income",
      "object": "adult",
      "class": [
        "data.frame"
      ],
      "fields": [
        "age",
        "workclass",
        "education",
        "education_num",
        "marital_status",
        "occupation",
        "relationship",
        "race",
        "sex",
        "capital_gain",
        "capital_loss",
        "hours_per_week",
        "native_country",
        "income"
      ],
      "rows": 30162,
      "table": true,
      "tojson": true
    },
    {
      "name": "bank",
      "title": "Bank Marketing",
      "object": "bank",
      "class": [
        "data.frame"
      ],
      "fields": [
        "age",
        "job",
        "marital",
        "education",
        "default",
        "housing",
        "loan",
        "contact",
        "month",
        "day_of_week",
        "campaign",
        "previous",
        "poutcome",
        "emp_var_rate",
        "cons_price_idx",
        "cons_conf_idx",
        "euribor3m",
        "nr_employed",
        "subscribed"
      ],
      "rows": 40195,
      "table": true,
      "tojson": true
    },
    {
      "name": "communities.and.crime",
      "title": "Communities and Crime Data Set",
      "object": "communities.and.crime",
      "class": [
        "data.frame"
      ],
      "fields": [
        "state",
        "county",
        "fold",
        "population",
        "householdsize",
        "racepctblack",
        "racePctWhite",
        "racePctAsian",
        "racePctHisp",
        "agePct12t21",
        "agePct12t29",
        "agePct16t24",
        "agePct65up",
        "numbUrban",
        "pctUrban",
        "medIncome",
        "pctWWage",
        "pctWFarmSelf",
        "pctWInvInc",
        "pctWSocSec",
        "pctWPubAsst",
        "pctWRetire",
        "medFamInc",
        "perCapInc",
        "whitePerCap",
        "blackPerCap",
        "indianPerCap",
        "AsianPerCap",
        "OtherPerCap",
        "HispPerCap",
        "NumUnderPov",
        "PctPopUnderPov",
        "PctLess9thGrade",
        "PctNotHSGrad",
        "PctBSorMore",
        "PctUnemployed",
        "PctEmploy",
        "PctEmplManu",
        "PctEmplProfServ",
        "PctOccupManu",
        "PctOccupMgmtProf",
        "MalePctDivorce",
        "MalePctNevMarr",
        "FemalePctDiv",
        "TotalPctDiv",
        "PersPerFam",
        "PctFam2Par",
        "PctKids2Par",
        "PctYoungKids2Par",
        "PctTeen2Par",
        "PctWorkMomYoungKids",
        "PctWorkMom",
        "NumIlleg",
        "PctIlleg",
        "NumImmig",
        "PctImmigRecent",
        "PctImmigRec5",
        "PctImmigRec8",
        "PctImmigRec10",
        "PctRecentImmig",
        "PctRecImmig5",
        "PctRecImmig8",
        "PctRecImmig10",
        "PctSpeakEnglOnly",
        "PctNotSpeakEnglWell",
        "PctLargHouseFam",
        "PctLargHouseOccup",
        "PersPerOccupHous",
        "PersPerOwnOccHous",
        "PersPerRentOccHous",
        "PctPersOwnOccup",
        "PctPersDenseHous",
        "PctHousLess3BR",
        "MedNumBR",
        "HousVacant",
        "PctHousOccup",
        "PctHousOwnOcc",
        "PctVacantBoarded",
        "PctVacMore6Mos",
        "MedYrHousBuilt",
        "PctHousNoPhone",
        "PctWOFullPlumb",
        "OwnOccLowQuart",
        "OwnOccMedVal",
        "OwnOccHiQuart",
        "RentLowQ",
        "RentMedian",
        "RentHighQ",
        "MedRent",
        "MedRentPctHousInc",
        "MedOwnCostPctInc",
        "MedOwnCostPctIncNoMtg",
        "NumInShelters",
        "NumStreet",
        "PctForeignBorn",
        "PctBornSameState",
        "PctSameHouse85",
        "PctSameCity85",
        "PctSameState85",
        "LandArea",
        "PopDens",
        "PctUsePubTrans",
        "LemasPctOfficDrugUn",
        "ViolentCrimesPerPop"
      ],
      "rows": 1969,
      "table": true,
      "tojson": true
    },
    {
      "name": "compas",
      "title": "Criminal Offenders Screened in Florida",
      "object": "compas",
      "class": [
        "data.frame"
      ],
      "fields": [
        "age",
        "juv_fel_count",
        "decile_score",
        "juv_misd_count",
        "juv_other_count",
        "v_decile_score",
        "priors_count",
        "sex",
        "two_year_recid",
        "race",
        "c_jail_in",
        "c_jail_out",
        "c_offense_date",
        "screening_date",
        "in_custody",
        "out_custody"
      ],
      "rows": 5855,
      "table": true,
      "tojson": true
    },
    {
      "name": "drug.consumption",
      "title": "Drug Consumption",
      "object": "drug.consumption",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Age",
        "Gender",
        "Education",
        "Country",
        "Race",
        "Nscore",
        "Escore",
        "Oscore",
        "Ascore",
        "Cscore",
        "Impulsive",
        "SS",
        "Alcohol",
        "Amphet",
        "Amyl",
        "Benzos",
        "Caff",
        "Cannabis",
        "Choc",
        "Coke",
        "Crack",
        "Ecstasy",
        "Heroin",
        "Ketamine",
        "Legalh",
        "LSD",
        "Meth",
        "Mushrooms",
        "Nicotine",
        "Semer",
        "VSA"
      ],
      "rows": 1885,
      "table": true,
      "tojson": true
    },
    {
      "name": "german.credit",
      "title": "German Credit Data",
      "object": "german.credit",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Account_status",
        "Duration",
        "Credit_history",
        "Purpose",
        "Credit_amount",
        "Savings_bonds",
        "Present_employment_since",
        "Installment_rate",
        "Other_debtors_guarantors",
        "Resident_since",
        "Property",
        "Age",
        "Other_installment_plans",
        "Housing",
        "Existing_credits",
        "Job",
        "People_maintenance_for",
        "Telephone",
        "Foreign_worker",
        "Credit_risk",
        "Gender"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "health.retirement",
      "title": "Health and Retirement Survey",
      "object": "health.retirement",
      "class": [
        "data.frame"
      ],
      "fields": [
        "year",
        "age",
        "educa",
        "networth",
        "cognition_catnew",
        "bmi",
        "hlthrte",
        "bloodp",
        "diabetes",
        "cancer",
        "lung",
        "heart",
        "stroke",
        "pchiat",
        "arthrit",
        "fall",
        "pain",
        "A1c_adj",
        "CRP_adj",
        "CYSC_adj",
        "HDL_adj",
        "TC_adj",
        "score",
        "gender",
        "marriage",
        "race",
        "race.ethnicity"
      ],
      "rows": 38653,
      "table": true,
      "tojson": true
    },
    {
      "name": "law.school.admissions",
      "title": "Law School Admission Council data",
      "object": "law.school.admissions",
      "class": [
        "data.frame"
      ],
      "fields": [
        "age",
        "decile1",
        "decile3",
        "fam_inc",
        "lsat",
        "ugpa",
        "gender",
        "race1",
        "cluster",
        "fulltime",
        "bar"
      ],
      "rows": 20800,
      "table": true,
      "tojson": true
    },
    {
      "name": "national.longitudinal.survey",
      "title": "Income and Labour Market Activities",
      "object": "national.longitudinal.survey",
      "class": [
        "data.frame"
      ],
      "fields": [
        "age",
        "race",
        "gender",
        "grade90",
        "income06",
        "income96",
        "income90",
        "partner",
        "height",
        "weight",
        "famsize",
        "genhealth",
        "illegalact",
        "charged",
        "jobsnum90",
        "afqt89",
        "typejob90",
        "jobtrain90"
      ],
      "rows": 4908,
      "table": true,
      "tojson": true
    },
    {
      "name": "obesity.levels",
      "title": "Obesity Levels",
      "object": "obesity.levels",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Gender",
        "Age",
        "Height",
        "Weight",
        "family_history_with_overweight",
        "FAVC",
        "FCVC",
        "NCP",
        "CAEC",
        "SMOKE",
        "CH2O",
        "SCC",
        "FAF",
        "TUE",
        "CALC",
        "MTRANS",
        "NObeyesdad"
      ],
      "rows": 2111,
      "table": true,
      "tojson": true
    },
    {
      "name": "vu.test",
      "title": "Synthetic Data Set to Test Fair Models",
      "object": "vu.test",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "fairml-package",
      "title": "Fair Models in Machine Learning",
      "topics": [
        "fairml-package",
        "fairml"
      ]
    },
    {
      "page": "adult",
      "title": "Census Income",
      "topics": [
        "adult"
      ]
    },
    {
      "page": "bank",
      "title": "Bank Marketing",
      "topics": [
        "bank"
      ]
    },
    {
      "page": "communities.and.crime",
      "title": "Communities and Crime Data Set",
      "topics": [
        "communities.and.crime"
      ]
    },
    {
      "page": "compas",
      "title": "Criminal Offenders Screened in Florida",
      "topics": [
        "compas"
      ]
    },
    {
      "page": "confint",
      "title": "Confidence Intervals for Fair Models",
      "topics": [
        "confint.fair.model",
        "plot.fair.confint"
      ]
    },
    {
      "page": "drug.consumption",
      "title": "Drug Consumption",
      "topics": [
        "drug.consumption"
      ]
    },
    {
      "page": "fairml.cv",
      "title": "Cross-Validation for Fair Models",
      "topics": [
        "cv.folds",
        "cv.loss",
        "cv.unfairness",
        "fairml.cv"
      ]
    },
    {
      "page": "fairness.profile.plot",
      "title": "Profile Fair Models with Respect to Tuning Parameters",
      "topics": [
        "fairness.profile.plot"
      ]
    },
    {
      "page": "flchain",
      "title": "Obesity Levels",
      "topics": [
        "flchain"
      ]
    },
    {
      "page": "frrm",
      "title": "Fair Ridge Regression Model",
      "topics": [
        "fgrrm",
        "frrm"
      ]
    },
    {
      "page": "german.credit",
      "title": "German Credit Data",
      "topics": [
        "german.credit"
      ]
    },
    {
      "page": "health.retirement",
      "title": "Health and Retirement Survey",
      "topics": [
        "health.retirement"
      ]
    },
    {
      "page": "law.school.admissions",
      "title": "Law School Admission Council data",
      "topics": [
        "law.school.admissions"
      ]
    },
    {
      "page": "methods",
      "title": "Extract Information from fair.model Objects",
      "topics": [
        "all.equal.fair.model",
        "coef.fair.model",
        "deviance.fair.model",
        "fitted.fair.model",
        "logLik.fair.model",
        "methods for fair.model objects",
        "nobs.fair.model",
        "plot.fair.model",
        "predict.fgrrm",
        "predict.frrm",
        "predict.nclm",
        "predict.zlm",
        "predict.zlrm",
        "print.fair.model",
        "residuals.fair.model",
        "sigma.fair.model",
        "summary.fair.model"
      ]
    },
    {
      "page": "national.longitudinal.survey",
      "title": "Income and Labour Market Activities",
      "topics": [
        "national.longitudinal.survey"
      ]
    },
    {
      "page": "nclm",
      "title": "Nonconvex Optimization for Regression with Fairness Constraints",
      "topics": [
        "nclm"
      ]
    },
    {
      "page": "obesity.levels",
      "title": "Obesity Levels",
      "topics": [
        "obesity.levels"
      ]
    },
    {
      "page": "synthetic",
      "title": "Synthetic Data Set to Test Fair Models",
      "topics": [
        "vu.test"
      ]
    },
    {
      "page": "zlm",
      "title": "Zafar's Linear and Logistic Regressions",
      "topics": [
        "zlm",
        "zlm.orig",
        "zlrm",
        "zlrm.orig"
      ]
    }
  ],
  "_rundeps": [
    "codetools",
    "foreach",
    "glmnet",
    "iterators",
    "lattice",
    "Matrix",
    "Rcpp",
    "RcppEigen",
    "shape",
    "survival"
  ],
  "_score": 2.054249075128152,
  "_indexed": true,
  "_nocasepkg": "fairml",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.1",
      "date": "2026-05-08T08:11:36.000Z",
      "distro": "noble",
      "commit": "9f4156f9208a4df1878da550dfd79f275069f59a",
      "fileid": "a63c1cfca26da2ec38aa9e3606750a88734bab84b8ddb71d5cc3653ab86ed527",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25544477615"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.9.1",
      "date": "2026-05-08T08:11:21.000Z",
      "distro": "noble",
      "commit": "9f4156f9208a4df1878da550dfd79f275069f59a",
      "fileid": "c965b52e1bf4d75941e49fcc9b026f2a5874d8a84cd9023cd02c4a0a87730ea8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25544477615"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.1",
      "date": "2026-05-22T13:57:29.000Z",
      "commit": "9f4156f9208a4df1878da550dfd79f275069f59a",
      "fileid": "c2a437dadbb83942883b6122235e683cdbfdd3da4ff215a8872d8c8311c47380",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25544477615"
    }
  ]
}