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

Description Usage Arguments Value Author(s)

Description

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

Usage

1
2
3
4
5
sim.CC.data.GxE(n = NULL, ncases = NULL, ncontrols = NULL,
  max.sample.size = NULL, pheno.prev = NULL, freq = 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.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.


agaye/ESPRESSO.GxE documentation built on May 10, 2019, 7:31 a.m.