mutoss.apply: Applies a function to a Mutoss object.

Description Usage Arguments Details Value Author(s) Examples

View source: R/mutossApply.R

Description

Applies a function to a Mutoss object.

Usage

1
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

1
2
3
4
5
6
7
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)

mutoss documentation built on May 2, 2019, 5:56 p.m.