Description Usage Arguments Value See Also Examples
View source: R/tadaa_two_sample.R
Tadaa, Wilcoxon!
1 2 3 4 5 6 7 8 9 |
data |
A |
response |
The response variable (dependent). |
group |
The group variable, usually a |
direction |
Test direction, like |
paired |
If |
print |
Print method, default |
... |
Further arguments passed to stats::wilcox.test, e.g. |
A data.frame
by default, otherwise dust
object, depending on print
.
Other Tadaa-functions:
tadaa_aov()
,
tadaa_chisq()
,
tadaa_kruskal()
,
tadaa_levene()
,
tadaa_nom()
,
tadaa_one_sample()
,
tadaa_ord()
,
tadaa_pairwise_tukey()
,
tadaa_pairwise_t()
,
tadaa_t.test()
1 2 3 4 5 6 | set.seed(42)
df <- data.frame(x = runif(100), y = sample(c("A", "B"), 100, TRUE))
tadaa_wilcoxon(df, x, y)
df <- data.frame(x = runif(100), y = c(rep("A", 50), rep("B", 50)))
tadaa_wilcoxon(df, x, y, paired = TRUE)
|
# A tibble: 1 x 7
diff median1 median2 statistic p.value method alternative
<dbl> <dbl> <dbl> <dbl> <dbl> <chr> <chr>
1 -0.134 0.463 0.597 1101 0.365 Wilcoxon rank sum test w~ two.sided
# A tibble: 1 x 7
diff median1 median2 statistic p.value method alternative
<dbl> <dbl> <dbl> <dbl> <dbl> <chr> <chr>
1 0.0934 0.447 0.354 676 0.714 Wilcoxon signed rank tes~ two.sided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.