I am looking for a way to simulate a phenotype associated with several loci starting from an existing genotype data in R. Is it possible to do this simulation directly in R? I am not a statistician and I cannot find a good reference to follow for calculations that can help me simulate an association with several loci and several causal SNPs, explaining a certain percentage of variance and with a certain heritability. If anybody has some idea about how to do this type of calculation directly in R I would appreciate any help.
Thank you in advance. James