Description Usage Arguments Value Author(s)
Simulate trial data
1 2 | simulate_trials(MCMC, n1, n, n3 = 0, r = 1/2, rfs = rnorm, rss = rnorm,
ncp = 0, cond = c("both", "first", "none"), restricted = TRUE)
|
MCMC |
Number of trials to simulate |
n1 |
First stage sample size |
n |
Total preplanned sample size |
n3 |
Third stage sample size (maybe a function of |
rfs |
First stage random number generator |
rss |
Second stage random number generator |
ncp |
Non-centrality parameter |
cond |
Condition on first and second stage observations ("both"), only on first stage observations ("first"), or unconditional of observations |
list object with simulated data
Florian Klinglmueller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.