Description Usage Arguments Details References See Also Examples
This function creates an object of class Criterion
which can be added
to an object of class EvaluationModel
.
1 |
id |
defines the ID of the |
method |
defines the method used by the |
tests |
defines the test(s) used by the |
statistics |
defines the statistic(s) used by the |
par |
defines the parameter(s) of the |
labels |
defines the label(s) of the results. |
Objects of class Criterion
are used in objects of class
EvaluationModel
to specify the criteria that will be applied to the
Clinical Scenario. Several objects of class Criterion
can be added to
an object of class EvaluationModel
.
Mandatory arguments are id
, method
, labels
and
tests
and/or statistics
.
method
argument defines the criterion's method. Several methods are
already implemented in the Mediana package (listed below, along with the
required parameters to define in the par
parameter):
MarginalPower
: generate the marginal power of all tests defined in
the test
argument. Required parameter: alpha
.
WeightedPower
: generate the weighted power of all tests defined in
the test
argument. Required parameters: alpha
and
weight
.
DisjunctivePower
: generate the disjunctive power
(probability to reject at least one hypothesis defined in the test
argument). Required parameter: alpha
.
ConjunctivePower
:
generate the conjunctive power (probability to reject all hypotheses defined
in the test
argument). Required parameter: alpha
.
ExpectedRejPower
: generate the expected number of rejected
hypotheses. Required parameter: alpha
.
http://gpaux.github.io/Mediana/
See Also AnalysisModel
.
1 2 3 4 5 6 7 | ## Add a Criterion to an EvaluationModel object
evaluation.model = EvaluationModel() +
Criterion(id = "Marginal power",
method = "MarginalPower",
tests = tests("Placebo vs treatment"),
labels = c("Placebo vs treatment"),
par = parameters(alpha = 0.025))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.