DataModel {Mediana}R Documentation

DataModel object

Description

DataModel() initializes an object of class DataModel.

Usage

DataModel(...)

Arguments

...

defines the arguments passed to create the object of class DataModel.

Details

Data models define the process of generating patients data in a clinical trial.

DataModel() is used to create an object of class DataModel incrementally, using the '+' operator to add objects to the existing DataModel object. The advantage is to explicitely define which objects are added to the DataModel object. Initialization with DataModel() is highly recommended.

Objects of class OutcomeDist, SampleSize, Sample, Event and Design can be added to an object of class DataModel.

References

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

See Also

See Also OutcomeDist, SampleSize, Sample and Design.

Examples

# Outcome parameter set 1
outcome1.placebo = parameters(mean = 0, sd = 70)
outcome1.treatment = parameters(mean = 40, sd = 70)

# Outcome parameter set 2
outcome2.placebo = parameters(mean = 0, sd = 70)
outcome2.treatment = parameters(mean = 50, sd = 70)

# Data model
data.model = DataModel() +
            OutcomeDist(outcome.dist = "NormalDist") +
            SampleSize(c(50, 55, 60, 65, 70)) +
            Sample(id = "Placebo",
                   outcome.par = parameters(outcome1.placebo, outcome2.placebo)) +
            Sample(id = "Treatment",
                   outcome.par = parameters(outcome1.treatment, outcome2.treatment))


[Package Mediana version 1.0.8 Index]