View source: R/clin_estimates.R
WINratio | R Documentation |
WINratio
computes the ratio of wins and losses for any number
of comparison rules.
WINratio(data, groupvar, testvars, rules, idvar = NULL, p_digits = 3)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.