generateData | R Documentation |
generateData
generates a set of simulated clinical trials' data
generateData(
modelparam,
respparam,
blparam,
trialdesign,
empirical,
makePositiveDefinite,
seed = NA
)
modelparam |
a datatable with a single entry per named column:
|
respparam |
Data table with 5 columns and 3 rows. The first row lists the 3 factors defining the response trajectories (tv, pb, and br). The rest of the columns are the input parameters for the modgompertz function:
|
blparam |
Data table with 3 colums and 3 rows. First row lists the varaibles being
defined, which consist of
|
trialdesign |
The information defining a single path through the clinical trial
design, as defined by the |
empirical |
Should the correlations be empirical? (Usually |
makePositiveDefinite |
Should the covariance matrix be forced to be positive definite? (Usually yes, although you may want to turn this off at times to test the impact of this step on your covariance sturcture) |
seed |
Randomization seed (defaults to NA) |
This is the core data simulation code. See vignettes for additional details. This function is primarily called by generateSimulatedResults.
A dat
file that contains both the total symptom scores at each timepoint
and also all the individual factors that were used to generate those total scores
#See vignettes for examples of how to use this
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.