Description Usage Arguments Value
Compute benchmark test for disparate impact of a policy
1 2 | compute_bm(pol, controls = NULL, kitchen_sink = FALSE, base_group = NULL,
minority_groups = NULL)
|
pol |
object of class policy |
controls |
character vector of additional controls to consider (i.e., valid benchmarks) |
kitchen_sink |
logical; if TRUE, ignore |
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 |
tidy data frame of benchmark coefficients
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.