Ir al contenido

This function is a helper to work with ksnet::get_association. After obtaining the results, for example, we could be interesting in keep in one data.frame only those related to either ANOVA or ANOVA and chi 2.

Uso

extract_association(obj, which = c("ANOVA", "corr", "t_test", "chisq_test"))

Argumentos

obj

a dataframe or a list.

which

One of 'ANOVA','corr','t_test','chisq_test'.

Valor

A data.frame

Ejemplos


mtcars$cyl <- factor(mtcars$cyl)

mtcars_asociacion <- ksnet::get_get_association(mtcars)
#> Error: 'get_get_association' is not an exported object from 'namespace:ksnet'

extract_association( mtcars_asociacion, 'ANOVA' )
#> Error in is.data.frame(obj): objeto 'mtcars_asociacion' no encontrado