Skip to contents

Compute p values and confidence intervals a.m. Games Howell

Usage

games_howell_test(
  vals,
  grps,
  arms = unique(grps),
  na_replacement = NULL,
  alpha = 0.05
)

Arguments

vals

numeric vector

grps

character vector, allowed values are "ctrl" and "actv" and used to slice x into two vectors with values to be compared.

arms

character vector with the arms used in the grps parameter. The first value will be used as the comparator.

na_replacement

scalar (or NULL), if NULL missing values will be removed. Otherwise, missing values will be replaced by the value of na_replacement

alpha

numeric, 1.0 - confidence_level

Value

A data.table with one row per pairwise comparison and six columns: comparator, target, estimate (= mean difference), p value as well as lower and upper bounds of the confidence interval corresponding to the alpha parameter.