Skip to contents

`chisq_p` calculates the p-value for a chi-square test given a contingency table.

Usage

chisq_p(a, b, c, d)

Arguments

a

Frequency count for row 1, column 1.

b

Frequency count for row 1, column 2.

c

Frequency count for row 2, column 1.

d

Frequency count for row 2, column 2.

Value

P-value from the chi-square test.