This function approximate by Monte-carlo simulation the distribution of a given test statistic under the H0.

MC_pvalue(stat, n, m, test, B = 10^4, seed = 1982)

Arguments

stat

observed test statistics

n

total of frequencies

m

number of spacings

Value

A list with the following structure:

dist

a vector containing the approximate distribution of the test statistic

n

total of frequencies

m

number of spacings

test

the considered test