stat_phi: calculate phi coefficient of two binary variables

View source: R/stat.R

stat_phiR Documentation

calculate phi coefficient of two binary variables

Description

calculate phi coefficient of two binary variables

Usage

stat_phi(x)

Arguments

x

2x2 matrix or dataframe

Value

phi coefficient

Examples

data <- matrix(c(10, 8, 14, 18), nrow = 2)
stat_phi(data)

baizer documentation built on Oct. 19, 2023, 9:07 a.m.