sim.CC.data.E: Generates 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.E(num.obs = 20000, numcases = 2000, numcontrols = 8000,
  allowed.sample.size = 2e+07, disease.prev = 0.1, env.model = 0,
  env.prev = 0.1, env.mean = 0, env.sd = 1, env.low.lim = 0,
  env.up.lim = 1, env.OR = 1.5, baseline.OR = 12.36,
  pheno.error = c(0.1, 0.1))

Arguments

num.obs

Number of observations to generate per iteration until the specified number of cases and controls is achieved.

numcases

Number of cases to generate.

numcontrols

Number of controls to generate.

allowed.sample.size

Maximum number of observations allowed i.e. the total size of the population to sample from.

disease.prev

Prevalence of the binary outcome.

env.model

Model of the environmental exposure.

env.prev

Prevelance of the environmental determinants.

env.mean

Statistical mean under quantitative-normal model.

env.sd

Standard deviation under quantitative-normal model.

env.low.lim

Lower limit under quantitative-uniform model.

env.up.lim

Upper limit under quantitative-uniform model.

env.OR

Odds ratios of the environmental determinants.

baseline.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.

pheno.error

misclassification rates: 1-sensitivity and 1-specificity

Value

a list which holds a matrix, data, that contains the phenotype and exposure statuses and an integer, allowed.sample.size.exceeded, which tells if the maximum population size has been exceeded.

Author(s)

Gaye A.


agaye/ESPRESSO.E documentation built on May 10, 2019, 7:30 a.m.