mmctestres-class {simctest} | R Documentation |
Class "mmctestres"
Description
Class which stores current result of type "mmctest".
Objects from the Class
Objects should not be created directly.
Objects returned by calls of the form new("mmctest", ...)
are of type mmctestres.
Slots
internal
:Object of class
"environment"
epsilon
:Object of class
"numeric"
threshold
:Object of class
"numeric"
r
:Object of class
"numeric"
R
:Object of class
"numeric"
h
:Object of class
"function"
gensample
:Object of class
"mmctSamplerGeneric"
g
:Object of class
"numeric"
num
:Object of class
"numeric"
A
:Object of class
"numeric"
B
:Object of class
"numeric"
C
:Object of class
"numeric"
thompson
:Object of class
"logical"
rejprob
:Object of class
"logical"
Methods
- mainalg
signature(obj = "mmctestres", stopcrit = "numeric")
: ...- cont
signature(data = "mmctestres", steps = "numeric")
: ...- show
signature(object = "mmctestres")
: ...- pEstimate
signature(obj = "mmctestres")
: ...- rejProb
signature(obj = "mmctestres")
: ...- confidenceLimits
signature(obj = "mmctestres")
: ...- testResult
signature(obj = "mmctestres")
: ...- summary.mmctestres
signature(object = "mmctestres")
: ...
Author(s)
Axel Gandy and Georg Hahn
References
Gandy, A. and Hahn, G. (2014) MMCTest - a safe algorithm for implementing multiple Monte Carlo tests. Scandinavian Journal of Statistics, 41(4):1083–1101
Examples
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));
# a is object of type "mmctestres" now