association_2fac: Tidy test of chi-squared contingency table test

View source: R/association_2fac.R

association_2facR Documentation

Tidy test of chi-squared contingency table test

Description

Carry out a chi-squared contingency table test for two vectors and export it in a tidy format with broom. It is also calculated the Cramer V.

Usage

association_2fac(x, y, ..., name_x = NULL, name_y = NULL)

Arguments

x

A vector.

y

A vector.

...

Optional. Parameters of chisq.test function.

name_x

Optional. Name of the x variable (character).

name_y

Optional. Name of the y variable (character).

Value

A data.frame with the results.

Examples

association_2fac( as.factor(mtcars$cyl), as.factor(mtcars$am) )

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