Description Usage Arguments Value Author(s)
Generates affected and non-affected subjects until the set sample size is achieved
1 2 3 4 | sim.CC.data.G(block.size = 20000, numcases = 2000, numcontrols = 8000,
allowed.sample.size = 2e+07, disease.prev = 0.1, geno.model = 0,
MAF = 0.1, geno.OR = 1.5, baseline.OR = 12.36, pheno.error = c(0.1,
0.1))
|
block.size |
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. |
geno.model |
genetic model; binary=0 and and additive=1. |
MAF |
minor allele frequency of the genetic variant. |
geno.OR |
odds ratio of the genetic determinant. |
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 |
a list which holds a matrix, data
, that contains the
phenotype and genotype statuses and an integer,
allowed.sample.size.exceeded
, which tells if the
maximum population size has been exceeded.
Gaye A.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.