Ir al contenido

Carry out a multiple comparison test. By default Holm method is used.

Uso

association_multiple_dif_test(df, pairs_to_check, pesos = NULL, ...)

Argumentos

df

A data.frame

pairs_to_check

A named list. Each element a character vector with factor names. Each element name is the name of the numeric variable.

pesos

Optional. A vector of weights.

...

Other arguments passed for modelbased::estimate_contrasts

Valor

A list.

Ejemplos

df <- mtcars
df$cyl <- as.factor(df$cyl)
df$gear <- as.factor(df$gear)
comparison <- list('mpg'  = c('cyl','gear'),
                   'disp' = c('cyl','gear') )

association_multiple_dif_test( df,pairs_to_check = gear )
#> Error in stopifnot(`pairs_to_check must be a list` = is.list(pairs_to_check)): objeto 'gear' no encontrado