Package: simtrait 1.1.11.9000

Alejandro Ochoa

simtrait: Simulate Complex Traits from Genotypes

Simulate complex traits given a SNP genotype matrix and model parameters (the desired heritability, optional environment group effects, 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 is 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 (2023) <doi:10.7554/eLife.79238>.

Authors:Alejandro Ochoa [aut, cre], Grace E. Rhodes [aut]

simtrait_1.1.11.9000.tar.gz
simtrait_1.1.11.9000.zip(r-4.7)simtrait_1.1.11.9000.zip(r-4.6)simtrait_1.1.11.9000.zip(r-4.5)
simtrait_1.1.11.9000.tgz(r-4.6-any)simtrait_1.1.11.9000.tgz(r-4.5-any)
simtrait_1.1.11.9000.tar.gz(r-4.7-any)simtrait_1.1.11.9000.tar.gz(r-4.6-any)
simtrait_1.1.11.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
simtrait/json (API)
NEWS

# Install 'simtrait' in R:
install.packages('simtrait', repos = c('https://ochoalab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ochoalab/simtrait/issues

On CRAN:

Conda:

5.35 score 6 stars 37 scripts 189 downloads 15 exports 2 dependencies

Last updated from:89b1908451. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK127
source / vignettesOK176
linux-release-x86_64OK115
macos-release-arm64OK103
macos-oldrel-arm64OK107
windows-develOK92
windows-releaseOK72
windows-oldrelOK72
wasm-releaseOK108

Exports:allele_freqscov_traitherit_lociinv_var_est_bayesianp_anc_est_beta_mlepval_aucprpval_gcpval_inflpval_power_calibpval_srmsdpval_type_1_errrmsdsim_traitsim_trait_modelsim_trait_mvn

Dependencies:PRROCrlang

simtrait: Simulate Complex Traits from Genotypes

Rendered fromsimtrait.Rmdusingknitr::rmarkdownon May 05 2026.

Last update: 2024-04-17
Started: 2019-02-10