WINratio
computes the ratio of wins and losses for any number
of comparison rules.
WINratio(data, groupvar, testvars, rules, idvar = NULL, p_digits = 3)
A list with elements:
WINratio=vector with WINratio and CIs,
WINodds=odds ratio of wins and losses, taking ties into account,
p.value=p.value from prop.test,
WINratioCI=character with merged WINratio, CI, and p
testdata= tibble with testdata from cross-join.
name of data set (tibble/data.frame) to analyze.
name of grouping variable, has to translate to 2 groups.
names of variables for sequential rules.
list of rules (minimal cut-offs) for sequential comparison, negative if reduction is success, positive if increase is beneficial, must not be 0.
name of identifier variable. If NULL, rownumber is used.
level for rounding p-value.