Description Usage Arguments Value
View source: R/one_time_simulation.R
One time simulation
1 2 3 4 5 6 7 8 9 10 11 | one_time_simulation(
n_sim,
beta_0,
beta_1,
beta_2,
mu,
sigma,
na,
nb,
permuted = FALSE
)
|
n_sim |
number of simulations |
beta_0 |
coefficient of the treatment |
beta_1 |
coefficient of the covariate 1 |
beta_2 |
cofficient of the covariate 2 |
mu |
the overall mean response |
sigma |
standard error of the error term |
na |
number of patients in the control |
nb |
number of patients in the treatment |
permuted |
whether use the permutation algorithm (Default is FALSE) |
data_sim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.