Description Usage Arguments Details References See Also Examples
This function creates an object of class MultAdj which can be added
to an object of class AnalysisModel.
1 |
... |
defines the arguments passed to create the object of class
|
This function can be used to wrap-up several objects of class
MultAdjProc or MultAdjStrategy and add them to an object of
class AnalysisModel. Its use is optional as objects of class
MultAdjProc or MultAdjStrategy can be added to an object of
class AnalysisModel incrementally using the '+' operator.
Objects of class MultAdjProc or MultAdjStrategy can be added
to an object of class AnalysisModel.
http://gpaux.github.io/Mediana/
See Also MultAdjStrategy, MultAdjProc
and AnalysisModel.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # Multiplicity adjustments
mult.adj1 = MultAdjProc(proc = NA)
mult.adj2 = MultAdjProc(proc = "BonferroniAdj")
mult.adj3 = MultAdjProc(proc = "HolmAdj", par = parameters(weight = rep(1/3,3)))
mult.adj4 = MultAdjProc(proc = "HochbergAdj", par = parameters(weight = c(1/4,1/4,1/2)))
# Analysis model
analysis.model = AnalysisModel() +
MultAdj(mult.adj1, mult.adj2, mult.adj3, mult.adj4) +
Test(id = "Pl vs Dose L",
samples = samples("Placebo", "Dose L"),
method = "TTest") +
Test(id = "Pl vs Dose M",
samples = samples ("Placebo", "Dose M"),
method = "TTest") +
Test(id = "Pl vs Dose H",
samples = samples("Placebo", "Dose H"),
method = "TTest")
# Equivalent to:
analysis.model = AnalysisModel() +
mult.adj1 +
mult.adj2 +
mult.adj3 +
mult.adj4 +
Test(id = "Pl vs Dose L",
samples = samples("Placebo", "Dose L"),
method = "TTest") +
Test(id = "Pl vs Dose M",
samples = samples ("Placebo", "Dose M"),
method = "TTest") +
Test(id = "Pl vs Dose H",
samples = samples("Placebo", "Dose H"),
method = "TTest")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.