do_or_table {dropR} | R Documentation |
Dropout Odds Ratio Table
Description
This function calculates an Odds Ratio table at a given question for selected experimental
conditions. It needs data in the format as created by compute_stats()
as input.
Usage
do_or_table(do_stats, chisq_question, sel_cond_chisq)
Arguments
do_stats |
data.frame statistics table as computed by |
chisq_question |
numeric Which question to calculate the OR table for |
sel_cond_chisq |
character vector naming the experimental conditions to compare |
Value
Returns a Matrix containing the Odds Ratios of dropout between all selected conditions.
See Also
Examples
do_stats <- compute_stats(df = add_dropout_idx(dropRdemo, 3:54),
by_cond = "experimental_condition",
no_of_vars = 52)
do_or_table(do_stats, chisq_question = 51, sel_cond_chisq = c("11", "12", "21", "22"))
[Package dropR version 1.0.3 Index]