The margin of error for the PPG given the specified sample size.
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.