Description Usage Arguments Methods Examples
Function which returns a list containing indices of rejected hypotheses (vector ‘rejected’), nonrejected hypotheses (vector ‘nonrejected’) and undecided hypotheses (vector ‘undecided’)
1 | testResult(obj)
|
obj |
object of type ‘mmctestres’ or ‘mmctest’. |
works with object of type mmctestres or mmctest.
1 2 3 4 5 6 7 8 | fun <- function(ind,n,data) sapply(1:length(ind), function(i) sum(runif(n[i])<=data[ind[i]]));
i <- mmctSampler(fun,num=500,data=runif(500));
a <- mmctest(h=hBH);
a <- run(a, i, maxsteps=list(maxnum=1000000,undecided=10));
res <- testResult(a);
rejected <- res$rejected;
nonrejected <- res$nonrejected;
undecided <- res$undecided;
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.