A template function for conducting a paired equivalence test
paired_equivalence_wrapper(
x,
y,
y_type,
width,
epsilon,
alpha,
scale,
na.rm,
do_test = TRUE
)
numeric vector representing the (possibly surrogate) sample
numeric vector representing the (possibly criterion) sample. Index
paired with x
classification of y
for the purpose of analysis. Can be
"criterion"
, "comparison"
, or "both"
.
the user-specified width of the equivalence region, possibly a proportion of an initially-uncalculated mean
the calculated width of the equivalence region
the alpha level for the test
character specifying whether the test should occur on an
absolute or relative scale. Must be one of "relative"
(default) or
"absolute"
.
logical. Omit mean values for mean calculations?
logical. Complete the test? Enables premature return that is useful in some cases