Learn R Programming

fairml (version 0.6.1)

bank: Bank Marketing

Description

Direct marketing campaigns (phone calls) of a Portuguese banking institution to make clients subscribe a term deposit.

Usage

data(bank)

Arguments

Format

The data contains 41188 observations and 19 variables. See the UCI Machine Learning Repository for details.

References

UCI Machine Learning Repository. https://archive.ics.uci.edu/ml/datasets/bank+marketing

Examples

Run this code
# NOT RUN {
data(bank)

# remove loans with unknown status, the corresponding coefficient is NA in glm().
bank = bank[bank$loan != "unknown", ]

# short-hand variable names.
r = bank[, "subscribed"]
s = bank[, c("age")]
p = bank[, setdiff(names(bank), c("subscribed", "age"))]

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

Run the code above in your browser using DataLab