ks_cumtest: Kolmogorov-Smirnov goodness of fit test for cumulative...

View source: R/RcppExports.R

ks_cumtestR Documentation

Kolmogorov-Smirnov goodness of fit test for cumulative discrete data

Description

Kolmogorov-Smirnov goodness of fit test for cumulative discrete data.

Usage

ks_cumtest(x, B = 10000L, prob = NULL)

Arguments

x

A vector representing the contingency table.

B

The number of simulations used to compute the p-value.

prob

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.

Details

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.

Value

A list of class "htest" giving the simulation results.

Author(s)

Claus Ekstrom <claus@rprimer.dk>

Examples


x <- 1:6
ks_cumtest(x)


MESS documentation built on Aug. 21, 2023, 1:05 a.m.

Related to ks_cumtest in MESS...