library("psych350lab")
pr_chi_to_r(10, 20, 30, 40)$chi_square
[1] 0.7936508
$p_value
[1] 0.3729985
$r_effect_size
[1] 0.08908708
Computes chi-square statistic, p-value, and r effect size from cell frequencies of a 2x2 contingency table.
pr_chi_to_r(a, b, c, d)
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). |
A list with chi_square, p_value, and r_effect_size.
library("psych350lab")
pr_chi_to_r(10, 20, 30, 40)$chi_square
[1] 0.7936508
$p_value
[1] 0.3729985
$r_effect_size
[1] 0.08908708