Description Usage Arguments Value Examples
Requires as input a generic test that for a given sample size provides a vector of pvalues. Aims to reject if these are not from the null. Guarantees a bound on the type I error rate.
1  expect_mc_test(object, control = NULL, npval = 1)

object 
A function taking one argument n  that generates pvalues based on a sample size n. 
control 
a list controlling the algorithm

npval 
number of pvalues returned by the test. A Bonferroni correction is applied if >1. Default: 1. 
The first argument, invisibly, to allow chaining of expectations.
1 2 3 4 5 6  pvalsampler < function(n){
x < sample.int(11,size=n,replace=TRUE)1;
chisq.test(tabulate(x+1,nbins=11),
p=rep(1/11,11))$p.value
}
expect_mc_test(pvalsampler)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.