ks: Compute the Kolmogorov-Smirnov test statistic

View source: R/stats.R

ksR Documentation

Compute the Kolmogorov-Smirnov test statistic

Description

ks returns a list containing the value of the test statistic, the approximate .05 critical value, and the exact significance level if sig=T.

Usage

ks(x, y, w = FALSE, sig = TRUE, alpha = 0.05)

Arguments

x, y

Two vectors. Missing values are automatically removed.

w

TRUE or FALSE. Set w to FALSE to use the standard version. Set w to TRUE to use a weighted version, which is more sensitive to differences occuring in the tails of the distributions.

sig

TRUE to use the exact significance level. If there are ties, the reported significance level is exact when using the unweighted test, but for the weighted test the reported level is too high.

Note

From Rallfun-v32.txt - see https://github.com/nicebread/WRS/

See Also

This function uses the functions ecdf, kstiesig, kssig and kswsig


GRousselet/rogme documentation built on Nov. 12, 2022, 4:38 a.m.