View source: R/sim.pheno.bin.GxE.R
sim.pheno.bin.GxE | R Documentation |
Generates affected and non-affected subjects
sim.pheno.bin.GxE(
num.obs = NULL,
disease.prev = NULL,
genotype = NULL,
environment = NULL,
interaction = NULL,
subject.effect.data = NULL,
geno.OR = NULL,
geno.frac_causal = NULL,
env.OR = NULL,
int.OR = NULL
)
num.obs |
Number of observations to generate per iteration |
disease.prev |
Prevalence of the binary outcome |
genotype |
Exposure data for genetic determinant |
environment |
Exposure data for environment |
interaction |
data |
subject.effect.data |
Subject effect data, reflects the heterogenity in baseline disease risk |
geno.OR |
Odds ratios of the genetic determinant |
geno.frac_causal |
Fraction of causal genetic variants |
env.OR |
Odds ratios of the two environments |
int.OR |
Odds ration of the interaction |
A dataframe of phenotype
Gaye A.; Westerman K.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.