View source: R/simulate_pp_data.R
simulate_pp_data
1 2 3 4 5 6 7 8 9 10 11 | simulate_pp_data(
n = 4,
n0 = 4,
n1 = 4,
delta = 0.5,
sigma_0 = 1,
sigma_1 = 2,
rho = 0.5,
tidy = TRUE,
seed = 1234
)
|
n |
number of paired observations |
n0 |
number of unpaired observations in the pre-group |
n1 |
number of unpaired observations in the post-group |
delta |
effect size |
sigma_0 |
standard deviation of pre-treatment measurements |
sigma_1 |
standard deviation of post-treatment measurements |
rho |
correlation between pre- and post- treatment measurements |
tidy |
whether to return the simulated data in tidy format |
seed |
seed passed to set.seed prior to simulation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.