Description Usage Arguments Value
Compute risk-adjusted disparate impact estimate for a policy
1 2 3 |
pol |
object of class policy |
controls |
character vector of additional controls to consider in the second-stage model |
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 |
fit_fn |
string indicating the rad estimation model/procedure used.
|
down_sample |
(Optional) proportion (between 0 and 1) or number (greater than 1) of rows to sample, if down sampling the (test) data; default is 1 (i.e., use all data) |
use_speedglm |
whether or not to use |
seed |
random seed to set |
... |
additional arguments to pass to |
tidy data frame with columns
term |
the group members considered minority |
estimate |
log-odds of treatment, relative to base_group (equivalent to logistic regression coefficient) |
std.error |
coefficient standard errors for |
statistic/p.value |
(for |
ptrt_base/minor |
(for |
method |
the method used |
controls |
features controlled for |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.