Learn R Programming

fairml (version 0.8)

adult: Census Income

Description

Predict whether income exceeds $50K per year using the U.S. 1994 Census data.

Usage

data(adult)

Arguments

Format

The data contains 30162 observations and 14 variables. See the UCI Machine Learning Repository for details.

References

UCI Machine Learning Repository.
https://archive.ics.uci.edu/ml/datasets/adult

Examples

Run this code
data(adult)

# short-hand variable names.
r = adult[, "income"]
s = adult[, c("sex", "race")]
p = adult[, setdiff(names(adult), c("income", "sex", "race"))]

if (FALSE) {
m = zlrm(response = r, sensitive = s, predictors = p, unfairness = 0.05)
summary(m)
}

Run the code above in your browser using DataLab