# pac: Compute the proportion above a specific cut location In DJAnderson07/esvis: Visualization and Estimation of Effect Sizes

## Description

Computes the proportion of the corresponding group, as specified by the `formula`, scoring above the specified `cuts`.

## Usage

 `1` ```pac(data, formula, cuts, ref_group = NULL) ```

## Arguments

 `data` The data frame used for estimation - ideally structured in a tidy format. `formula` A formula of the type `out ~ group` where `out` is the outcome variable and `group` is the grouping variable. Note this variable can include any arbitrary number of groups. Additional variables can be included with `+` to produce separate estimates by the secondary or tertiary variables of interest (e.g., ```out ~ group + characteristic1 + characteristic2```). `cuts` Optional vector of cut scores. If supplied, the ECDF will be guaranteed to include these points. Otherwise, there could be gaps in the ECDF at those particular points (used in plotting the cut scores). `ref_group` Optional. A character vector or forumla listing the reference group levels for each variable on the right hand side of the formula, supplied in the same order as the formula. Note that if using the formula version, levels that are numbers, or include hyphens, spaces, etc., should be wrapped in back ticks (e.g., `ref_group = ~ Active + `Non-FRL``, or `ref_group = ~`8``). When in doubt, it is safest to use the back ticks, as they will not interfere with anything if they are not needed. See examples below for more details.

## Value

Tidy data frame of the proportion above the cutoff for each (or selected) groups.

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13``` ```# Compute differences for all pairwise comparisons for each of three cuts pac(star, reading ~ condition, cut = c(450, 500, 550)) pac(star, reading ~ condition + freelunch + race, cut = c(450, 500)) pac(star, reading ~ condition + freelunch + race, cut = c(450, 500), ref_group = ~small + no + white) ```