ppg_moe {DisImpact} R Documentation

## Margin of error for the PPG

### Description

Calculate the margin of error (MOE) for the percentage point gap (PPG) method.

### Usage

ppg_moe(n, proportion, min_moe = 0.03, prop_sub_0 = 0.5, prop_sub_1 = 0.5)


### Arguments

 n Sample size for the group of interest. proportion (Optional) The proportion of successes for the group of interest. If specified, then the proportion is used in the MOE formula. Otherwise, a default proportion of 0.50 is used (conservative and yields the maximum MOE). min_moe The minimum MOE returned even if the sample size is large. Defaults to 0.03. This equates to a minimum threshold gap for declaring disproportionate impact. prop_sub_0 For cases where 'proportion' is 0, substitute with prop_sub_0 (defaults to 0.5) to account for the zero MOE. prop_sub_1 For cases where 'proportion' is 1, substitute with prop_sub_1 (defaults to 0.5) to account for the zero MOE.

### Value

The margin of error for the PPG given the specified sample size.

### References

California Community Colleges Chancellor's Office (2017). Percentage Point Gap Method.

### Examples

ppg_moe(n=800)
ppg_moe(n=c(200, 800, 1000, 2000))
ppg_moe(n=800, proportion=0.20)
ppg_moe(n=800, proportion=0.20, min_moe=0)
ppg_moe(n=c(200, 800, 1000, 2000), min_moe=0.01)


[Package DisImpact version 0.0.21 Index]