Description Usage Arguments Value
View source: R/simulation_zhang.R
Simulation for the prespecified iterations
1 2 3 4 5 6 7 8 9 10 11 12 13 | simulation_zhang(
n_sim,
parallel_state = FALSE,
random_seed = 123,
beta_0,
beta_1,
beta_2,
mu,
sigma,
na,
nb,
permuted = FALSE
)
|
n_sim |
number of simulations |
parallel_state |
whether to use the parallel function (Default is False) |
random_seed |
specify a random seed to reproduce the results (Default seed is 123) |
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.