Learn R Programming

README

The DisImpact R package contains functions that help in determining Disproportionate Impact (DI) based on the following methodologies:

  1. Percentage Point Gap (PPG) method,
  2. Proportionality Index method (method #1 in reference), and
  3. 80% Index (method #2 in reference).

Install Package

# From CRAN
install.packages('DisImpact')

# From github (Development)
devtools::install_github('vinhdizzo/DisImpact')

Vignettes and Tutorials

The DisImpact package offers several vignettes/tutorials to get the user familiar with the package and methods provided:

  1. Package tutorial.
  2. Scaling DI calculations across a variety of scenarios.
  3. Multi-Ethnicity Categorization and how to analyze such data with DisImpact.
  4. Intersectionality and how to perform such analysis with DisImpact.
  5. DI Calculations on long, summarized data sets using the di_iterate_on_long function.

Copy Link

Version

Install

install.packages('DisImpact')

Monthly Downloads

453

Version

0.0.21

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Vinh Nguyen

Last Published

October 10th, 2022

Functions in DisImpact (0.0.21)

di_ppg_iterate

Iteratively calculate disproportionate impact via the percentage point gap (PPG) method for many variables.
di_iterate_sql

Iteratively calculate disproportionate impact using multiple methods for many variables, using SQL.
di_calc_sql

Generate SQL code that calculates disproportionate impact using multiple methods for a specified table.
di_iterate_dt

di_iterate_on_long

Iteratively calculate disproportionate impact using multiple methods for a long and summarized data set
di_80_index

Calculate disproportionate impact per the 80% index
di_calc_dt

student_equity

Fake data on student equity
surround_quote_if_needed

Helper function: Surround character values with double quotes if not present.
di_iterate

Iteratively calculate disproportionate impact using multiple method for many variables.
di_prop_index

Calculate disproportionate impact per the proportionality index (PI) method.
di_ppg

Calculate disproportionate impact per the percentage point gap (PPG) method.
ssm_cohort

Long summarized disaggregated data set
ppg_moe

Margin of error for the PPG