compute_bm: Compute benchmark test for disparate impact of a policy

Description Usage Arguments Value

Description

Compute benchmark test for disparate impact of a policy

Usage

1
2
compute_bm(pol, controls = NULL, kitchen_sink = FALSE, base_group = NULL,
  minority_groups = NULL)

Arguments

pol

object of class policy

controls

character vector of additional controls to consider (i.e., valid benchmarks)

kitchen_sink

logical; if TRUE, ignore controls argument, and include all variables given with the policy, i.e., policy$features (default: FALSE)

base_group

(Optional) single group that acts as the pivot/base; by default, if the grouping variable is a factor, set to the first level, otherwise set to the first of sorted unique values

minority_groups

(Optional) groups to compare to the base group; by default, set to every unique value other than the base group

Value

tidy data frame of benchmark coefficients


jongbinjung/undi documentation built on May 8, 2019, 11:56 p.m.