# symscorestat: Generalization of Wilcoxon signed rank test In MultNonParam: Multivariate Nonparametric Methods

## Description

`symscorestat` returns either exact or asymptotic p-values for score tests of the null hypothesis of univariate symmetry about 0.

## Usage

 `1` ```symscorestat(y,scores,exact,sides) ```

## Arguments

 `y` Vector of data on which test will be run. `scores` Scores to be used for the test. Defaults to integers 1:length(y). `exact` Logical variable indicating whether the exact p-value should be calculate. Default is false. `sides` Integer; 1 for one sided test rejecting for large values of the statistic, and 2 for the two-sided test. Defaults to 1.

## Details

The statistic considered here is the sum of scores corresponding to those entries in y that are positive. If exact=T, the function calls a Fortran code to cycle through all permutations. If exact=F, the expectation of the statistic is calculated as half the sum of the scores, the variance is calculated as one quarter the sum of squares of scores about their mean, and the statistic is compared to its approximating normal distribution.

## Value

 `pv` the p-value obtained with the permutation tests. `tot` the total number of rearrangements of the data considred in calculating the p-value.

John E. Kolassa

## References

J.J. Higgins, (2004), Introduction to Modern Nonparametric Statistics, Brooks/Cole, Cengage Learning.

## Examples

 `1` ```symscorestat(y=c(1,-2,3,-4,5),exact=TRUE) ```

MultNonParam documentation built on May 29, 2017, 3:19 p.m.