simulation_zhang: Simulation for the prespecified iterations

Description Usage Arguments Value

View source: R/simulation_zhang.R

Description

Simulation for the prespecified iterations

Usage

 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
)

Arguments

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)

Value

data_sim


zdz0610/minP.lm documentation built on Dec. 23, 2021, 9:15 p.m.