View source: R/compare_freqs.R
compare_freqs | R Documentation |
Using stats::mcnemar.test
for comparing dependent proportions.
This is function is dubious. Best not to use it.
compare_freqs(f, adjust = stats::p.adjust.methods, correct = TRUE)
f |
A factor vector. |
adjust |
Method for correcting p-values. See |
correct |
a logical indicating whether to apply continuity correction when computing the test statistic. |
f <- c(
rep("A", 12),
rep("B", 45),
rep("C", 42),
rep("D", 20)
)
compare_freqs(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.