Skip to content

simtrait

1.1.3

Simulate Complex Traits from Genotypes

0packages depend
2.5Kdownloads / year
89.4%test coverage
13/13checks pass

Overview

About
Maintained by Alejandro OchoaFirst published 2021-08-163 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 1.2 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.83
89.4%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 204 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.5K
CRAN downloads in the past year
Rank #19,221 · ~7/day · ~206/mo
Daily download trend is not available in this view yet.
14830 days
56990 days
2.5K1 year
Compare downloads with other packages →
Also on98 r2u17 autocran

Repository

Repository
6Stars
1Forks
0Open issues
0Open PRs
3Releases
77Commits
1Contributors
License GPL-3.0 · 77 commits · Last activity 2025-07-08 · 0% stars, 30d

Stars over time

2025-01-05 · 52026-07-07 · 6

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/ochoalab/simtrait on 2026-08-16.

CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.1.3Latest
    2023-01-06 · current release · diff ↗
  • 1.1.0
    2022-08-23 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.21
    2021-08-16
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-08-16
Total releases
3 / 5 yrs
License
GPL-3 OSI
Download size
323 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("simtrait")
Ochoa, A. (2023). simtrait: Simulate Complex Traits from Genotypes (Version 1.1.3) [Computer software]. https://doi.org/10.32614/CRAN.package.simtrait

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for simtrait version 1.1.3 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy