run-methods: Methods for Function run in Package 'simctest'

Description Usage Arguments Methods Examples

Description

Starts a sampling algorithm

Usage

1
  run(alg,gensample,maxsteps)

Arguments

alg

the sampling algorithm. An object of type "sampalg" or "mmctest".

gensample

a function returing the result of one resampling step (0=no rejection, 1=rejection of the null hypothesis), or an object of type "mmctSamplerGeneric" if alg="mmctest".

maxsteps

the maximal number of steps to take

Methods

alg = "sampalgPrecomp"

the algorithm to be used

alg = "sampalgonthefly"

the algorithm to be used

alg = "mmctest", gensample = "mmctSamplerGeneric"

the algorithm to be used

Examples

1
2
3
alg<-getalgonthefly()
res <- run(alg, function() runif(1)<0.2);
res

simctest documentation built on Nov. 4, 2019, 5:08 p.m.