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)
stat |
observed test statistics |
---|---|
n |
total of frequencies |
m |
number of spacings |
A list with the following structure:
a vector
containing the approximate distribution of the test statistic
total of frequencies
number of spacings
the considered test