This function performs the Kolmogorov-Smirnov test

ks.test(sequence, distribution = "NORMAL", ...)

Arguments

sequence

Secuence of data

distribution

Distribution name to perform test

...

Parameters for the distribution

Value

A list with pvalues for alternative hypothesis, statistics, method and data name

Examples

ks.test(rnorm(100, mean=0.5))
#> $data.name #> [1] "rnorm(100, mean = 0.5)" #> #> $statistic #> Dn #> 0.3579911 #> #> $p.value #> [1] "0.01" #> #> $method #> [1] "Kolmogorov-Smirnov" #>
ks.test(rnorm(100, mean=0.5), mean = 0.5)
#> $data.name #> [1] "rnorm(100, mean = 0.5)" #> #> $statistic #> Dn #> 0.08563601 #> #> $p.value #> [1] 1 #> #> $method #> [1] "Kolmogorov-Smirnov" #>