W_stat: Wilcoxon Sign Rank Test Statistic Exact Distribution

Description Usage Arguments Value Examples

View source: R/W_stat.R

Description

This function allows the user to find the probability values from the exact distribution of W, Bickel and Doksum(1973). The exact P(W=x), P(W<=x), P(W>=x) values is found via an exhaustive enumeration of the possible permutations of data with size n.

Usage

1
W_stat(n , test_stat, side = c('geq','leq','eq'))

Arguments

n

Size of data or Number of observations

test_stat

The x value specified in P(W=x), P(W<=x), P(W>=x)

side

The tails of exact probability the user wants to compute e.g. 'eq' = P(W=x), 'leq' = P(W<=x), 'geq' = 'P(W>=x)

Value

The exact probability values as specified.

Examples

1
W_stat(n=5, test_stat = 3, side = 'leq')

wilcoxmed documentation built on Jan. 25, 2021, 5:06 p.m.