Simulate individual-level effects by GLM

simulate_indv_glm(
  nind = 40,
  ngenes = 1000,
  ncausal = 5,
  nreverse = 0,
  ncovar.conf = 3,
  ncovar.batch = 0,
  ngenes.covar = ngenes,
  num.mixtures = 1,
  pve.1 = 0.3,
  pve.c = 0.5,
  pve.a = 0.5,
  pve.r = 0,
  rseed = 13,
  exposure.type = c("binary", "continuous"),
  smudge = 1
)

Arguments

nind

num of individuals

ncausal

num of causal genes

nreverse

num of anti-causal genes

ncovar.conf

num of confounding covariates

ncovar.batch

num of confounding batch variables

num.mixtures

num of cell mixtures

pve.1

variance of treatment/disease effect

pve.c

variance of confounding effect

pve.a

variance of confounders to the assignment

pve.r

variance of reverse causation

rseed

random seed

exposure.type

"binary" or "continuous"

ngene

num of genes/features

ngene.covar

num of genes affected by covariates