Skip to content
Prev 273634 / 398506 Next

KS test and theoretical distribution

On Thu, 6 Oct 2011, francogrex wrote:

            
Because you didn't read the docs, or didn't follow them, or mistyped. The 
docs say

        y: either a numeric vector of data values, or a character string
           naming a cumulative distribution function or an actual
           cumulative distribution function such as 'pnorm'.  Only
           continuous CDFs are valid.

So you would want

ks.test(runif(100), "punif")

Best,
Z