Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

DataModel

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

See Also

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

Mediana

Clinical Trial Simulations

v1.0.8
GPL-2
Authors
Gautier Paux, Alex Dmitrienko.
Initial release
2019-05-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.