rweSimuTwoArm: Simulate continuous outcomes for a two arm study

Description Usage Arguments

View source: R/rwe_simu.R

Description

Simulate continuous outcomes for a two arm study

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
rweSimuTwoArm(
  nPat,
  muCov,
  sdCov,
  corCov,
  trt.effect = 0,
  regCoeff.y,
  regCoeff.z = 0,
  mix.phi = 1,
  cov.breaks = NULL,
  fmla.y = NULL,
  fmla.z = NULL,
  ysig = NULL,
  b0 = NULL,
  z1.p = 0.5,
  sig2Ratio = 2,
  ...,
  do.simu = TRUE
)

Arguments

nPat

number of patients

muCov

mean vector of covariates

sdCov

standard deviation vector of covariates

corCov

correlation of covariates

mix.phi

weight in mixture model

cov.breaks

breaks to cut covaraites into categories. If numeric, the same cuts will be applied to all covariates. If list, each covariates will be categorized based on its own breaks. If NULL, keep continuous.

ysig

standard error of the random error

b0

intercept in regession model


olssol/rwetools documentation built on April 18, 2021, 11:42 a.m.