td.wilcoxon: Wilcoxon Test

Description Usage Arguments Details Value Examples

View source: R/td.wilcoxon.R

Description

The Wilcoxon Signed Ranks Test is an alternative analogous to the t-test for correlated samples.

Usage

1
td.wilcoxon(tdf, col1, col2, thresh = 0.05)

Arguments

tdf

td data frame.

col1

first column to test.

col2

second column to test.

thresh

threshold. Default value is 0.05

Details

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.

Value

Single row data frame with the Wilcoxon test results

Examples

1
2
3
4
## Not run: 
td.wilcoxon(tdf, "income", "age")

## End(Not run)

nonsleepr/teradataR documentation built on May 23, 2019, 9:32 p.m.