Learn R Programming

NSM3 (version 1.1)

kolmogorov: Kolmogorov

Description

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

Usage

kolmogorov(x,fnc,...)

Arguments

Value

The function returns a list with two elements:Dthe value of the Kolmogorov statisticpthe corresponding probability

Examples

Run this code
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)

Run the code above in your browser using DataLab