infer_chisq_assoc_test: Chi Square Test of Association

Description Usage Arguments Value Deprecated Function References See Also Examples

View source: R/infer-chisq-assoc-test.R

Description

Chi Square test of association to examine if there is a relationship between two categorical variables.

Usage

1

Arguments

data

a data.frame or tibble

x

factor; column in data

y

factor; column in data

Value

infer_chisq_assoc_test returns an object of class "infer_chisq_assoc_test". An object of class "infer_chisq_assoc_test" is a list containing the following components:

chi

chi square

chilr

likelihood ratio chi square

chimh

mantel haenszel chi square

chiy

continuity adjusted chi square

sig

p-value of chi square

siglr

p-value of likelihood ratio chi square

sigmh

p-value of mantel haenszel chi square

sigy

p-value of continuity adjusted chi square

phi

phi coefficient

cc

contingency coefficient

cv

cramer's v

ds

product of dimensions of the table of x and y

df

degrees of freedom

Deprecated Function

chisq_test() has been deprecated. Instead use infer_chisq_assoc_test().

References

Sheskin, D. J. 2007. Handbook of Parametric and Nonparametric Statistical Procedures, 4th edition. : Chapman & Hall/CRC.

See Also

chisq.test

Examples

1
2
3
infer_chisq_assoc_test(hsb, female, schtyp)

infer_chisq_assoc_test(hsb, female, ses)

inferr documentation built on May 2, 2019, 6:23 a.m.