powered by
Report Chi-squared test in APA style
chisq_apa( x, print_n = FALSE, format = c("text", "markdown", "rmarkdown", "html", "latex", "latex_math", "docx", "plotmath"), info = FALSE, print = TRUE )
A call to chisq.test
chisq.test
Logical indicating whether to show sample size in text
Character string specifying the output format. One of "text", "markdown", "rmarkdown", html, "latex", "latex_math", "docx" or "plotmath".
"text"
"markdown"
"rmarkdown"
html
"latex"
"latex_math"
"docx"
"plotmath"
Logical indicating whether to print a message on the used test (default is FALSE)
FALSE
Logical indicating whether to print the formatted output via cat (TRUE, default) or return as character string.
cat
TRUE
# Example data from ?chisq.test m <- rbind(c(762, 327, 468), c(484, 239, 477)) chisq_apa(chisq.test(m))
Run the code above in your browser using DataLab