This function performs Monte Carlo simulations when needed, it is not developed for the use of the user.
.MonteCarlo(
statistic,
alternative,
FUN,
B = 1000,
rdist = stats::runif,
Trows,
Mcols,
...
)
Estimated p-value.
Observed value of the statistic.
A character string indicating the alternative hypothesis
and must be one of "greater"
, "less"
or "two.sided"
.
A function that computes the statistic.
An integer specifying the number of replicates used in the Monte Carlo approach.
function that simulates continuous random variables,
e.g., runif
(fastest in stats
package),
rnorm
or rexp
.
Number of rows and columns respectively, of the desired
sample rdist
.
Not used.
Jorge Castillo-Mateo