Skip to contents

Mann-Whitney vs. control for each treatment group; Bonferroni- adjusted p-values by default.

Usage

morie_control_comparison(
  groups,
  control_index = 1L,
  adjust = c("bonferroni", "none")
)

Arguments

groups

List of numeric vectors; first (or control_index-th) element is the control.

control_index

Integer position of the control group. Default 1.

adjust

One of "bonferroni", "none".

Value

Named list: statistic, p_value, p_adjusted, n, k, control_n.

Examples

set.seed(1)
morie_control_comparison(groups = list(rnorm(20), rnorm(20), rnorm(20)))
#> $statistic
#> [1] 228 220
#> 
#> $p_value
#> [1] 0.4488088 0.5885064
#> 
#> $p_adjusted
#> [1] 0.8976175 1.0000000
#> 
#> $n
#> [1] 20 20
#> 
#> $k
#> [1] 2
#> 
#> $control_n
#> [1] 20
#> 
#> $adjust
#> [1] "bonferroni"
#> 
#> $method
#> [1] "Nonparametric many-to-one (Mann-Whitney) vs. control"
#>