Learn R Programming

sjmisc (version 1.0.2)

phi: Phi value for a contingency table

Description

Compute Phi value for a contingency table.

Usage

phi(tab)

Arguments

tab
A simple table or ftable. Tables of class xtabs and other will be coerced to

Value

  • The table's Phi value.

See Also

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