Last chance! 50% off unlimited learning
Sale ends in
ecdf
), and adds a confidence band by inverting
the corresponding Kolmogorov-Smirnov test (ks.test
). The
uniform distribution is rejected if the ECDF is not completely inside
the confidence band.ks.plot.unif(U, conf.level = 0.95, exact = NULL,
col.conf = "gray", col.ref = "gray",
xlab = expression(u[(i)]), ylab = "Cumulative distribution")
ks.test
.NULL
(invisibly).ks.test
for the Kolmogorov-Smirnov test, as well as
checkResidualProcess
, which makes use of this plot
function.samp <- runif(99)
ks.plot.unif(samp, conf.level=c(0.95, 0.99), exact=TRUE)
ks.plot.unif(samp, conf.level=c(0.95, 0.99), exact=FALSE)
Run the code above in your browser using DataLab