sim.CC.data.LD: 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
sim.CC.data.LD(n = NULL, ncases = NULL, ncontrols = NULL,
  max.sample.size = NULL, pheno.prev = NULL, freq1 = NULL,
  g1.model = NULL, g1.OR = NULL, freq2 = NULL, g2.model = NULL,
  g2.OR = NULL, r = 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

freq1

Minor allele frequency of the 1st genetic determinant

g1.model

Genetic model of the 1st genetic determinant; 0 for binary and 1 for additive

g1.OR

Odds ratios of the 1st genetic determinant

freq2

Minor allele frequency of the 2st genetic determinant

g2.model

Genetic model of the 2st genetic determinant; 0 for binary and 1 for additive

g2.OR

Odds ratios of the 2st genetic determinant

r

desired level of correlation if the two SNPs are modelled as being in LD.

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.LD documentation built on May 10, 2019, 7:31 a.m.