sim.CC.data.GxE: Simulates case and controls

View source: R/sim.CC.data.GxE.R

sim.CC.data.GxER Documentation

Simulates case and controls

Description

Generates affected and non-affected subjects until the set sample size is achieved.

Usage

sim.CC.data.GxE(
  n = NULL,
  ncases = NULL,
  ncontrols = NULL,
  max.sample.size = NULL,
  pheno.prev = NULL,
  freq = NULL,
  g.nvar = NULL,
  g.frac_causal = NULL,
  g.model = NULL,
  g.OR = NULL,
  e.model = NULL,
  e.prev = NULL,
  e.mean = NULL,
  e.sd = NULL,
  e.low.lim = NULL,
  e.up.lim = NULL,
  e.OR = NULL,
  i.OR = NULL,
  b.OR = NULL,
  ph.error = NULL
)

Arguments

n

Number of observations to generate per iteration

ncases

Number of cases to simulate

ncontrols

Number of controls to simulate

max.sample.size

Maximum number of observations allowed

pheno.prev

Prevalence of the binary outcome

freq

Minor allele frequency

g.nvar

Integer number of genetic variants to simulate

g.frac_causal

Fracton of causal genetic variants

g.model

Genetic model; 0 for binary and 1 for additive

g.OR

Odds ratios of the genetic determinant

e.model

Model of the environmental exposure

e.prev

Prevelance of the environmental determinates

e.mean

Mean under quantitative-normal model

e.sd

Standard deviation under quantitative-normal model

e.low.lim

Lower limit under quantitative-uniform model

e.up.lim

Upper limit under quantitative-uniform model

e.OR

Odds ratios of the environmental determinants

i.OR

Odds ration of the interaction

b.OR

Baseline odds ratio for subject on 95 percent population centile versus 5 percentile. This parameter reflects the heterogeneity in disease risk arising from determinates that have not been measured or have not been included in the model.

ph.error

misclassification rates: 1-sensitivity and 1-specificity

Value

A matrix

Author(s)

Gaye A.; Westerman K.


kwesterman/ESPRESSO.GxE.RV documentation built on Aug. 27, 2023, 4:44 a.m.