KS | R Documentation |
Applies a one-sample Kolmogorov-Smirnov test (see ?stats::ks.test)
KS(y, dist, par)
y |
numeric vector, data |
dist |
character, distribution name |
par |
numeric vector, parameter vector |
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 |
y=stats::rnorm(20)
KS(y,'Normal',c(0,1))
KS(y,'Normal',c(1,1))
KS(y,'Gumbel',c(0,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.