extract_association: Extract specifics tests from 'ksnet::get_association'

View source: R/extract_association.r

extract_associationR Documentation

Extract specifics tests from ksnet::get_association

Description

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.

Usage

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

Arguments

obj

a dataframe or a list.

which

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

Value

A data.frame

Examples


mtcars$cyl <- factor(mtcars$cyl)

mtcars_asociacion <- ksnet::get_get_association(mtcars)

extract_association( mtcars_asociacion, 'ANOVA' )




octmedina/ksnet documentation built on April 18, 2023, 3:34 p.m.