data(vu.test)
fairness.profile.plot(response = vu.test$gaussian, predictors = vu.test$X,
sensitive = vu.test$S, type = "coefficients", model = "nclm", legend = TRUE)
fairness.profile.plot(response = vu.test$gaussian, predictors = vu.test$X,
sensitive = vu.test$S, type = "constraints", model = "nclm", legend = TRUE)
fairness.profile.plot(response = vu.test$gaussian, predictors = vu.test$X,
sensitive = vu.test$S, type = "rmse", model = "nclm", legend = TRUE)
# profile plots fitting models in parallel.
if (FALSE) {
library(parallel)
cl = makeCluster(2)
fairness.profile.plot(response = vu.test$gaussian, predictors = vu.test$X,
sensitive = vu.test$S, model = "nclm", cluster = cl)
stopCluster(cl)
}
Run the code above in your browser using DataLab