# NOT RUN {
### PLI=0.01.
ppt<-0.01
### g*e model
pge<-ppt # the proportion of G*E component in total populations
ppe<-0.5
ppg<-pge/ppe
fd<-0.0005 # one dominant gene
tt<-3 # the number of recessive genes
temp<-sqrt(1-((1-ppg)/(1-fd)^2)^(1/tt))
fr<-c(array(0,length(fd)),array(temp,tt))
fd<-c(fd,array(0,tt))
drgen(fd,fr,ppe)
# }
Run the code above in your browser using DataLab