I want to generate a 1600 samples (800 cases and 800 controls) and only 2 snps data for interaction analysis.
P(D|AABB)=0.0909
, The condition that I know is MAF(minor allele frequency p(a)
or p(b)
) =0.1 and genetic heritability h^2 = 0.03
, prevalence p(D)=0.1
. The epistasis model is a multiplicative model as in table(odds table) below , with alpha=0.09989 and theta=3.4481.
model1 BB Bb bb
AA a(alpha) a a
Aa a a(1+theta) a(1+theta)^2
aa a a(1+theta)^2 a(1+theta)^4
penetrance for each genotype will be as follow:
P(D|AABb)=0.0909,
P(D|AAbb)=0.0909,
P(D|AaBB)=0.0909,
P(D|AaBb)=0.30747,
P(D|Aabb)=0.6645,
P(D|aaBB)=0.0909,
P(D|aaBb)=0.6645,
P(D|aabb)=0.97491
Does anyone have any ideas?
Maybe it is a little difficult understand...
cross posted: http://stackoverflow.com/questions/23891724