Make contingency table with chi-square test of independence
Usage
apa_chisq(
x,
note = NULL,
family = "Times New Roman",
font_size = 12,
text_color = "black",
line_spacing = 2,
border_color = "black",
border_width = 0.5,
suppress_warnings = TRUE
)
Examples
apa_chisq(mtcars[, c("am", "gear")])
#> Registered S3 method overwritten by 'ftExtra':
#> method from
#> as_flextable.data.frame flextable
am
gear
0
1
n
%
n
%
3
15
78.9%
0
0.0%
4
4
21.1%
8
61.5%
5
0
0.0%
5
38.5%
Note. χ2 (2) = 20.94, p < .001, Adj. Cramer’s V = .78