Learn R Programming

baizer (version 0.8.0)

stat_phi: calculate phi coefficient of two binary variables

Description

calculate phi coefficient of two binary variables

Usage

stat_phi(x)

Value

phi coefficient

Arguments

x

2x2 matrix or dataframe

Examples

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

Run the code above in your browser using DataLab