.MonteCarlo | R Documentation |
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,
...
)
statistic |
Observed value of the statistic. |
alternative |
A character string indicating the alternative hypothesis
and must be one of |
FUN |
A function that computes the statistic. |
B |
An integer specifying the number of replicates used in the Monte Carlo approach. |
rdist |
function that simulates continuous random variables,
e.g., |
Trows, Mcols |
Number of rows and columns respectively, of the desired
sample |
... |
Not used. |
Estimated p-value.
Jorge Castillo-Mateo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.