one_time_simulation: One time simulation

Description Usage Arguments Value

View source: R/one_time_simulation.R

Description

One time simulation

Usage

 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
)

Arguments

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)

Value

data_sim


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