calc_association: Compute association coefficents

View source: R/calc_association.r

calc_associationR Documentation

Compute association coefficents

Description

Computation of association coefficients.

Usage

calc_association(
  x,
  y,
  type = c("chi-square", "contingency", "cramers-v", "fisher", "phi")
)

Arguments

x

A character vector

y

A character vector

type

A character single value, that is the type of the association to be computed

Details

Currently, it is possible to compute the following metrics:


- Contingency association coefficient
- Chi-square test statistic
- Cramer's V association coefficient
- Fisher test statistic
- Phi association coefficent

Value

A numeric single value with the computed value.

Examples


calc_association(mtcars$vs,mtcars$am)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.