infer_chisq_assoc_test: Chi Square Test of Association

Description Usage Arguments Value Deprecated Function References See Also Examples

View source: R/ifr-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:

chisquare

chi square

chisquare_lr

likelihood ratio chi square

chisquare_mantel_haenszel

mantel haenszel chi square

chisquare_adjusted

continuity adjusted chi square

contingency_coefficient

contingency coefficient

cramers_v

cramer's v

df

degrees of freedom

ds

product of dimensions of the table of x and y

phi_coefficient

phi coefficient

pval_chisquare

p-value of chi square

pval_chisquare_adjusted

p-value of continuity adjusted chi square

pval_chisquare_lr

p-value of likelihood ratio chi square

pval_chisquare_mantel_haenszel

p-value of mantel haenszel chi square

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 29, 2021, 1:07 a.m.