Description Usage Arguments Details Value Author(s) See Also Examples
SimulateSimonDsgn
simulates data from Simon's optimal and minimax designs.
1 2 | SimulateSimonDsgn(replicates, designParam, newp1 = NA, seed = NA,
deleteOld = TRUE)
|
replicates |
Number of trials to be generated. |
designParam |
A dataframe containing Simon's optimal and minimax designs, as returned
by the function |
newp1 |
If |
seed |
Initial value (any integer) of random-number seed. It is useful for creating
simulations that can be reproduced. The default is |
deleteOld |
If TRUE (default) the sub-directories |
The simulated trials are stored in the sub-directories /Optimal/SimulatedTrials
and /Minimax/SimulatedTrials
for optimal and minimax designs, repectively, under the
current working directory. The sub-directories are automatically created. Individual trial
data are stored in a CSV file named trial#
, where # is the replicate number.
The function is not intended to return an R object, instead it creates files
(in CSV format) containing simulated trials data. See Details. It also saves
in the current working directory the designParam
argument (DesignParameters.csv).
Arsenio Nhacolo
CalculateSimonDsgn
, SimulateSimonDsgnAdaptN
and AnalyzeSimonDsgn
.
1 2 | d <- CalculateSimonDsgn(0.2, 0.4, 0.05, 0.1)
SimulateSimonDsgn(100, d, seed = 1986)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.