Package: simtrait 1.1.7.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 Rhodes [aut]

simtrait_1.1.7.9000.tar.gz
simtrait_1.1.7.9000.zip(r-4.5)simtrait_1.1.7.9000.zip(r-4.4)simtrait_1.1.7.9000.zip(r-4.3)
simtrait_1.1.7.9000.tgz(r-4.4-any)simtrait_1.1.7.9000.tgz(r-4.3-any)
simtrait_1.1.7.9000.tar.gz(r-4.5-noble)simtrait_1.1.7.9000.tar.gz(r-4.4-noble)
simtrait_1.1.7.9000.tgz(r-4.4-emscripten)simtrait_1.1.7.9000.tgz(r-4.3-emscripten)
simtrait.pdf |simtrait.html
simtrait/json (API)
NEWS

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

Peer review:

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

On CRAN:

5.10 score 4 stars 21 scripts 141 downloads 13 exports 1 dependencies

Last updated 2 days agofrom:8063498d2e. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-winOKNov 20 2024
R-4.5-linuxOKNov 20 2024
R-4.4-winOKNov 20 2024
R-4.4-macOKNov 20 2024
R-4.3-winOKNov 20 2024
R-4.3-macOKNov 20 2024

Exports:allele_freqscov_traitherit_lociinv_var_est_bayesianp_anc_est_beta_mlepval_aucprpval_inflpval_power_calibpval_srmsdpval_type_1_errrmsdsim_traitsim_trait_mvn

Dependencies:PRROC

simtrait: Simulate Complex Traits from Genotypes

Rendered fromsimtrait.Rmdusingknitr::rmarkdownon Nov 20 2024.

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