Description Usage Arguments Value See Also Examples
Computes the difference in the proportion above the specified cuts
for all possible pairwise comparisons of the groups specified by the
formula
.
1 | pac_compare(data, formula, cuts, ref_group = NULL)
|
data |
The data frame used for estimation - ideally structured in a tidy format. |
formula |
A formula of the type |
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.,
|
Tidy data frame of the proportion above the cutoff for each (or selected) groups.
[esvis::pac(), esvis::tpac(), esvis::tpac_diff()]
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_compare(star,
reading ~ condition,
cuts = c(450, 500, 550))
pac_compare(star,
reading ~ condition + freelunch + race,
cuts = c(450, 500))
pac_compare(star,
reading ~ condition + freelunch + race,
cuts = c(450, 500),
ref_group = ~small + no + white)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.