Chi-Square Effect Size from 2x2 Table

Description

Computes chi-square statistic, p-value, and r effect size from cell frequencies of a 2x2 contingency table.

Usage

pr_chi_to_r(a, b, c, d)

Arguments

a Integer. Cell frequency (row 1, col 1).
b Integer. Cell frequency (row 1, col 2).
c Integer. Cell frequency (row 2, col 1).
d Integer. Cell frequency (row 2, col 2).

Value

A list with chi_square, p_value, and r_effect_size.

Examples

$chi_square
[1] 0.7936508

$p_value
[1] 0.3729985

$r_effect_size
[1] 0.08908708