residuals.RdIllustrate a one-sample Kolmogorov-Smirnov test by plotting the empirical distribution deviation.
inla.ks.plot(x, y, diff=TRUE, ...)a numeric vector of data values.
a cumulative distribution function such as 'pnorm'.
logical, indicating if the normalised difference should be
plotted. If FALSE, the absolute distribution functions are plotted.
additional arguments for ks.test, ignored in
the plotting. In particular, only two-sided tests are illustrated.
In addition to the (normalised) empirical distribution deviation, lines for the K-S test statistic are drawn, as well as \(\pm\) two standard deviations around the expectation under the null hypothesis.
A list with class "htest", as generated by
ks.test