Learn R Programming

sjPlot (version 1.7)

phi: Phi value for a contingency table

Description

Compute Phi value for a contingency table.

Usage

phi(tab)

Arguments

Value

The table's Phi value.

See Also

table_values cramer

Examples

Run this code
tab <- table(sample(1:2, 30, TRUE), sample(1:2, 30, TRUE))
phi(tab)

Run the code above in your browser using DataLab