powered by
Applies a one-sample Kolmogorov-Smirnov test (see ?stats::ks.test)
KS(y, dist, par)
A list with the following components:
numeric, p-value of the test
numeric, test statistics
numeric, xtra information: empty for this test
numeric vector, data
character, distribution name
numeric vector, parameter vector
y=stats::rnorm(20) KS(y,'Normal',c(0,1)) KS(y,'Normal',c(1,1)) KS(y,'Gumbel',c(0,1))
Run the code above in your browser using DataLab