Simulate Complex Traits from Genotypes

Simulate complex traits given a SNP genotype matrix and model parameters (the desired heritability, number of causal loci, and either the true ancestral allele frequencies used to generate the genotypes or the mean kinship for a real dataset). Emphasis on avoiding common biases due to the use of estimated allele frequencies. The code selects random loci to be causal, constructs coefficients for these loci and random independent non-genetic effects. Traits can follow three models: random coefficients, fixed effect sizes, and infinitesimal (multivariate normal). GWAS method benchmarking functions are also provided. Partially described in Yao and Ochoa (2019) .


News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("simtrait")

1.0.21 by Alejandro Ochoa, a month ago


https://github.com/OchoaLab/simtrait


Report a bug at https://github.com/OchoaLab/simtrait/issues


Browse source code at https://github.com/cran/simtrait


Authors: Alejandro Ochoa [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports PRROC

Suggests popkin, testthat, knitr, rmarkdown, bnpsd, BEDMatrix


See at CRAN