Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

kolmogorov

Kolmogorov


Description

Function to compute the asymptotic P-value for the observed Kolmogorov D statistic.

Usage

kolmogorov(x,fnc,...)

Arguments

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)

Value

The function returns a list with two elements:

D

the value of the Kolmogorov statistic

p

the corresponding probability

Author(s)

Rachel Becvarik

Examples

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)

NSM3

Functions and Datasets to Accompany Hollander, Wolfe, and Chicken - Nonparametric Statistical Methods, Third Edition

v1.16
GPL-2
Authors
Grant Schneider, Eric Chicken, Rachel Becvarik
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.