KS {HydroPortailStats} | R Documentation |
Kolmogorov-Smirnov Test
Description
Applies a one-sample Kolmogorov-Smirnov test (see ?stats::ks.test)
Usage
KS(y, dist, par)
Arguments
y |
numeric vector, data |
dist |
character, distribution name |
par |
numeric vector, parameter vector |
Value
A list with the following components:
pval |
numeric, p-value of the test |
stat |
numeric, test statistics |
xtra |
numeric, xtra information: empty for this test |
Examples
y=stats::rnorm(20)
KS(y,'Normal',c(0,1))
KS(y,'Normal',c(1,1))
KS(y,'Gumbel',c(0,1))
[Package HydroPortailStats version 1.0.3 Index]