Estimate the differences in means between each level of a factor
association_multiple_dif_test.Rd
Carry out a multiple comparison test. By default Holm method is used.
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
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