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, and can optionally generate random group effects. Traits can follow three models: random coefficients, fixed effect sizes, and infinitesimal (multivariate normal). GWAS method benchmarking functions are also provided. Described in Yao and Ochoa (2022) <doi:10.1101/2022.03.25.485885>.
| Version: | 1.1.3 |
| Imports: | PRROC |
| Suggests: | popkin, testthat, knitr, rmarkdown, bnpsd, BEDMatrix |
| Published: | 2023-01-06 |
| DOI: | 10.32614/CRAN.package.simtrait |
| Author: | Alejandro Ochoa |
| Maintainer: | Alejandro Ochoa <alejandro.ochoa at duke.edu> |
| BugReports: | https://github.com/OchoaLab/simtrait/issues |
| License: | GPL-3 |
| URL: | https://github.com/OchoaLab/simtrait |
| NeedsCompilation: | no |
| Materials: | README, NEWS |
| CRAN checks: | simtrait results |
| Reference manual: | simtrait.html , simtrait.pdf |
| Vignettes: |
'simtrait': Simulate Complex Traits from Genotypes (source, R code) |
| Package source: | simtrait_1.1.3.tar.gz |
| Windows binaries: | r-devel: simtrait_1.1.3.zip, r-release: simtrait_1.1.3.zip, r-oldrel: simtrait_1.1.3.zip |
| macOS binaries: | r-release (arm64): simtrait_1.1.3.tgz, r-oldrel (arm64): simtrait_1.1.3.tgz, r-release (x86_64): simtrait_1.1.3.tgz, r-oldrel (x86_64): simtrait_1.1.3.tgz |
| Old sources: | simtrait archive |
Please use the canonical form https://CRAN.R-project.org/package=simtrait to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.