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

morie_control_comparison(groups = list(rnorm(20), rnorm(20), rnorm(20)))
#> $statistic
#> [1] 159 165
#> 
#> $p_value
#> [1] 0.2674070 0.3437646
#> 
#> $p_adjusted
#> [1] 0.5348141 0.6875292
#> 
#> $n
#> [1] 20 20
#> 
#> $k
#> [1] 2
#> 
#> $control_n
#> [1] 20
#> 
#> $adjust
#> [1] "bonferroni"
#> 
#> $method
#> [1] "Nonparametric many-to-one (Mann-Whitney) vs. control"
#>