run-methods {simctest}R Documentation

Methods for Function run in Package ‘simctest’

Description

Starts a sampling algorithm

Usage

  run(alg,gensample,maxsteps=1e4)

Arguments

alg the sampling algorithm. An object of type sampalg.
gensample a function returing the result of one resampling step (0=no rejection, 1=rejection of the null hypothesis)
maxsteps the maximal number of steps to take

Methods

alg = "sampalgPrecomp"
~~describe this method here
alg = "sampalgonthefly"
~~describe this method here

Examples

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

[Package simctest version 1.0-0 Index]