Description Usage Arguments Value Author(s) Examples
View source: R/f.adverse_impact.R
Accepts grouping vector d.group, vector of outcome (e.g., pass/fail) as d.pass, and value for majority group (e.g., "male"), assumes only two groups
1 2 3 4 5 6 7 | f.adverse_impact(
d.group,
d.pass,
majority.group,
minority.group,
min_percent_minority = 0.05
)
|
d.group |
is a vector of grouping variable values |
d.pass |
is a vector of outcome values |
majority.group |
is the label of value assigned to the majority group |
min_percent_minority |
is the minimum percent of the sample that must be in the minority group in order to report results |
Returns a dataframe with columns...
total.n = overall sample size
majority.n = sample size of the majority group
minority.n = sample size of the minority group
percent.minority = percentage of sample in minority group
SR.total = selection ratio of the entire sample
SR.majority = selection ratio of the majority group
SR.minority = selection ratio of the minority group
impact.ratio = SR.minority / SR.majority
fishers.p = p value of the Fisher Exact Test
SD2.test = results of the 2 Standard Deviation Test
lower_95CI, upper_95CI = lower and upper confidence intervals around Impact Ratio
shortfall = the number of additional minority group members needed to pass to have an impact ratio = 1
Adam Meade awmeade@ncsu.edu
1 2 3 4 | require('psych')
pass <- ifelse(sat.act$ACT > mean(sat.act$ACT) , 1, 0)
table(sat.act$gender)
f.adverse_impact(sat.act$gender, pass, majority.group = 2, minority.group = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.