MultAdjProc: MultAdjProc object

Description Usage Arguments Details References See Also Examples

View source: R/MultAdjProc.R

Description

This function creates an object of class MultAdjProc which can be added to objects of class AnalysisModel, MultAdj or MultAdjStrategy.

Usage

1

Arguments

proc

defines a multiplicity adjustment procedure.

par

defines the parameters of the multiplicity adjustment procedure (optional).

tests

defines the tests taken into account in the multiplicity adjustment procedure.

Details

Objects of class MultAdjProc are used in objects of class AnalysisModel to specify a Multiplicity Adjustment Procedure that will be applied to the statistical tests to protect the overall Type I error rate. Several objects of class MultAdjProc can be added to an object of class AnalysisModel, using the '+' operator or by grouping them into a MultAdj object.

proc argument defines the multiplicity adjustment procedure. Several procedures are already implemented in the Mediana package (listed below, along with the required or optional parameters to specify in the par argument):

If no tests are defined, the multiplicity adjustment procedure will be applied to all tests defined in the AnalysisModel.

References

http://gpaux.github.io/Mediana/

See Also

See Also MultAdj, MultAdjStrategy and AnalysisModel.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# Parameters of the chain procedure (fixed-sequence procedure)
# Vector of hypothesis weights
chain.weight = c(1, 0)
# Matrix of transition parameters
chain.transition = matrix(c(0, 1,
                            0, 0), 2, 2, byrow = TRUE)

# Analysis model
analysis.model = AnalysisModel() +
  MultAdjProc(proc = "ChainAdj",
              par = parameters(weight = chain.weight,
                               transition = chain.transition)) +
  Test(id = "PFS test",
       samples = samples("Plac PFS", "Treat PFS"),
       method = "LogrankTest") +
  Test(id = "OS test",
       samples = samples("Plac OS", "Treat OS"),
       method = "LogrankTest")

gpaux/Mediana documentation built on May 31, 2021, 1:22 a.m.