mutoss.apply {mutoss}R Documentation

Applies a function to a Mutoss object.

Description

Applies a function to a Mutoss object.

Usage

mutoss.apply(mutossObj, f, label = deparse(substitute(f)) , recordHistory = TRUE , ...)

Arguments

mutossObj

the Mutoss object the function should be applied to

f

the function that should be applied

label

the label affixed to all slots of the Mutoss object that are changed by the procedure, defaults to the name of parameter f

recordHistory

if true, the calling command is concatenated verbatim to the commandHistory slot

...

additional parameters that are passed to the function

Details

This functions is intended for applying functions for multiplicity control on Mutoss class objects using the console and not the Mutoss GUI.

Value

A Mutoss object after applying the given function

mutossObj

Object of S4 class Mutoss

Author(s)

Kornelius Rohmeyer

Examples

newObjectBonf <- mutoss.apply(new(Class="Mutoss", pValues=runif(10)), 
  f=bonferroni, label="Bonferroni Correction", alpha=0.05)
## Not run:  TODO: EXAMPLE PROBLEM
newObjectHolm <- mutoss.apply(new(Class="Mutoss", pValues=runif(10)), 
  f=holm, label="Holm's step-down-procedure", alpha=0.05, silent=T)

newObjectAORC <- mutoss.apply(new(Class="Mutoss", pValues=runif(10)), 
  f=aorc, label="Asymptotically optimal rejection curve", alpha=0.05, startIDX_SUD = 1, silent=T)

## End(Not run)

[Package mutoss version 0.1-13 Index]