getSamples-methods {simctest}R Documentation

Methods for Function ‘cont’ in class ‘mmctestres’, Package ‘simctest’

Description

Function to request further samples from certain hypotheses.

Usage

 getSamples(obj, ind, n)

Arguments

obj

object of type "mmctSampler" derived from class "mmctSamplerGeneric".

ind

vector containing the indices of hypotheses for which further samples are requested.

n

vector containing number of further samples for each hypothesis in vector ‘ind’.

Methods

getSamples(obj, ind, n)

works with object of type "mmctSampler" derived from class "mmctSamplerGeneric".

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));
  samples <- getSamples(i, c(1,2), c(2,2));

[Package simctest version 2.6 Index]