WINratio {wrappedtools} | R Documentation |
Comparison for groups in clinical trials based on all possible combinations of subjects
Description
WINratio
computes the ratio of wins and losses for any number
of comparison rules.
Usage
WINratio(data, groupvar, testvars, rules, idvar = NULL, p_digits = 3)
Arguments
data |
name of data set (tibble/data.frame) to analyze. |
groupvar |
name of grouping variable, has to translate to 2 groups. |
testvars |
names of variables for sequential rules. |
rules |
list of rules (minimal cut-offs) for sequential comparison, negative if reduction is success, positive if increase is beneficial, must not be 0. |
idvar |
name of identifier variable. If NULL, rownumber is used. |
p_digits |
level for rounding p-value. |
Value
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.
[Package wrappedtools version 0.9.5 Index]