Description Usage Arguments Details References See Also Examples
DataModel()
initializes an object of class DataModel
.
1 |
... |
defines the arguments passed to create the object of class
|
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
.
http://gpaux.github.io/Mediana/
See Also OutcomeDist
, SampleSize
,
Sample
and Design
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.