kolmogorov | R Documentation |
Function to compute the asymptotic P-value for the observed Kolmogorov D statistic.
kolmogorov(x,fnc,...)
x |
a vector of data of length n |
fnc |
the functional form of the pdf of F0. The first argument must be the data. |
... |
all the parameters besides the data that fnc needs to operate. (See below for an example using pnorm and pexp) |
The function returns a list with two elements:
D |
the value of the Kolmogorov statistic |
p |
the corresponding probability |
Rachel Becvarik
velocity<-c(12.8, 12.9, 13.3, 13.4, 13.7, 13.8, 14.5)
kolmogorov(velocity,pnorm, mean=14,sd=2)
kolmogorov(velocity,pexp,1/2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.