Kolmogorov-Smirnov goodness of fit test for cumulative discrete data.
ks_cumtest(x, B = 10000L, prob = NULL)
A list of class "htest" giving the simulation results.
A vector representing the contingency table.
The number of simulations used to compute the p-value.
A positive vector of the same length as x representing the distribution under the null hypothesis. It will be scaled to sum to 1. If NULL (the default) then a uniform distribution is assumed.
Claus Ekstrom <claus@rprimer.dk>
The name of the function might change in the future so keep that in mind!
Simulation is done by random sampling from the null hypothesis.