Learn R Programming

ppks (version 1.0)

colppks: Permutation Based Paired Kolmogorov-Smirnov Test

Description

Permutation Based Paired Kolmogorov-Smirnov Test

Usage

colppks(x, y, R = 999)

Value

A vector with permutation based p-values. Each p-value corresponds to a column in the matrices.

Arguments

x

A numerical matrix with data.

y

A numerical matrix with data.

R

The number of permutations to perform.

Author

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

Details

The permutation based Kolmogorov-Smirnov test for paired samples (Wang W.S., Amsler C. and Schmidt, P., 2025) is performed. The x and y matrices contain the paired observations. The i-th column of x is paired with the i-th column of y.

References

Wang W.S., Amsler C. and Schmidt, P. (2025). A randomly swapped bootstrap for paired data: testing equality of distribution for correlated samples. Empirical Economics, To appear. https://link.springer.com/article/10.1007/s00181-025-02779-0

Examples

Run this code
x <- matrix( rnorm(30 * 10), ncol = 10 )
y <- x + rnorm(30 * 10)
colppks(x, y)

Run the code above in your browser using DataLab