Description Usage Arguments Details Value Examples
The Wilcoxon Signed Ranks Test is an alternative analogous to the t-test for correlated samples.
1 | td.wilcoxon(tdf, col1, col2, thresh = 0.05)
|
tdf |
td data frame. |
col1 |
first column to test. |
col2 |
second column to test. |
thresh |
threshold. Default value is 0.05 |
Given a td data frame and names of paired numeric columns, a Wilcoxon test is produced. The Wilcoxon tests whether a sample comes from a population with a specific mean or median. The null hypothesis is that the samples come from populations with the same mean or median. The alternative hypothesis is that the samples come from populations with different means or medians (two-tailed test), or that in addition the difference is in a specific direction (upper-tailed or lower-tailed tests). Output is a p-value, which when compared to the users threshold, determines whether the null hypothesis should be rejected.
Single row data frame with the Wilcoxon test results
1 2 3 4 | ## Not run:
td.wilcoxon(tdf, "income", "age")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.