Description Usage Arguments Value Author(s) Examples
Function to print results of a Chi2-test in APA standard (Chi2(df) = chi2; p = p)
1 | chi_results(x, y)
|
x |
a numeric vector or a factor |
y |
a numeric vector or a factor |
"Chi2(df) = chi2; p = p"
Dominik Vogel
1 2 3 4 5 6 7 8 | df <- data.frame(id = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
treatment = factor(c("treated", "treated", "not-treated", "treated",
"treated", "treated", "not-treated",
"treated", "not-treated", "treated")),
improvement = factor(c("improved","improved","not-improved","improved",
"improved", "improved", "not-improved",
"not-improved", "not-improved", "improved")))
chi_results(df$treatment, df$improvement)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.