Skip to contents

Phi coefficient for a 2x2 contingency table

Usage

phi_coefficient(contingency_table)

Arguments

contingency_table

2x2 numeric matrix.

Value

A morie_effect_size.

Examples

phi_coefficient(matrix(c(20, 10, 15, 25), nrow = 2))
#> $measure
#> [1] "Phi coefficient"
#> 
#> $estimate
#> [1] 0.2886751
#> 
#> $ci_lower
#> [1] NA
#> 
#> $ci_upper
#> [1] NA
#> 
#> $se
#> [1] NA
#> 
#> $n
#> [1] 70
#> 
#> $extra
#> list()
#> 
#> attr(,"class")
#> [1] "morie_effect_size" "list"