infer_chisq_assoc_test {inferr} | R Documentation |
Chi Square Test of Association
Description
Chi Square test of association to examine if there is a relationship between two categorical variables.
Usage
infer_chisq_assoc_test(data, x, y)
Arguments
data |
a |
x |
factor; column in |
y |
factor; column in |
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 |
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
Examples
infer_chisq_assoc_test(hsb, female, schtyp)
infer_chisq_assoc_test(hsb, female, ses)