tpac {esvis} | R Documentation |
Transformed proportion above the cut
Description
This function transforms calls to pac into standard deviation units. Function assumes that each distribution is distributed normally with common variances. See Ho & Reardon, 2012
Usage
tpac(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 |
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.,
|
Value
Tidy data frame of the proportion above the cutoff for each (or selected) groups.
See Also
[esvis::pac(), esvis::pac_diff(), esvis::tpac_compare()]
Examples
# Compute differences for all pairwise comparisons for each of three cuts
tpac(star,
reading ~ condition,
cut = c(450, 500, 550))
tpac(star,
reading ~ condition + freelunch + race,
cut = c(450, 500))
tpac(star,
reading ~ condition + freelunch + race,
cut = c(450, 500),
ref_group = ~small + no + white)