Criterion {Mediana}R Documentation

Criterion object

Description

This function creates an object of class Criterion which can be added to an object of class EvaluationModel.

Usage

Criterion(id, method, tests = NULL, statistics = NULL, par = NULL, labels)

Arguments

id

defines the ID of the Criterion object.

method

defines the method used by the Criterion object.

tests

defines the test(s) used by the Criterion object.

statistics

defines the statistic(s) used by the Criterion object.

par

defines the parameter(s) of the method argument of the Criterion object .

labels

defines the label(s) of the results.

Details

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):

References

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

See Also

See Also AnalysisModel.

Examples

## 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))

[Package Mediana version 1.0.8 Index]