Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: stats
See also: adstat

Quantlet: kstat
Description: calculates Kolmogorov statistics

Reference(s):

Usage: {cval,pv} = kstat(x,cdf)
Input:
x n x 1 vector, sample
cdf n x 1 vector, values of the hypothesized cumulative distribution function of x
Output:
cval scalar, test value
pv scalar, p-value

Example:
library("stats")
randomize(10)
x = normal(10000)
kstat(x,cdfn(x))

Result:
Contents of _tmp.cval
[1,]  0.98289
Contents of _tmp.pv
[1,]  0.2888



Author: S. Borak, R. Weron, 20030116
(C) MD*TECH Method and Data Technologies, 05.02.2006