rBahadur: Assortative Mating Simulation and Multivariate Bernoulli Variates

Simulation of phenotype / genotype data under assortative and disassortative mating. Includes functions for generating Bahadur order-2 multivariate Bernoulli variables with general and diagonal-plus-low-rank correlation structures, and for writing simulated genotypes to disk as binary int8 or PLINK bed files. Further details are provided in: Border and Malik (2023) <doi:10.1186/s12859-023-05442-6>.

Version: 1.1.0
Depends: R (≥ 3.3.0), stats
Imports: utils
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-07-23
DOI: 10.32614/CRAN.package.rBahadur
Author: Richard Border ORCID iD [aut, cre], Osman Malik ORCID iD [aut]
Maintainer: Richard Border <border.richard at gmail.com>
BugReports: https://github.com/border-lab/rBahadur/issues
License: GPL (≥ 3)
URL: https://github.com/border-lab/rBahadur
NeedsCompilation: no
SystemRequirements: curl, gzip (providing zcat), awk
Language: en-US
Citation: rBahadur citation info
Materials: README, NEWS
CRAN checks: rBahadur results

Documentation:

Reference manual: rBahadur.html , rBahadur.pdf
Vignettes: Combining assortative mating with realistic local LD (source, R code)

Downloads:

Package source: rBahadur_1.1.0.tar.gz
Windows binaries: r-devel: rBahadur_1.1.0.zip, r-release: rBahadur_1.0.0.zip, r-oldrel: rBahadur_1.0.0.zip
macOS binaries: r-release (arm64): rBahadur_1.1.0.tgz, r-oldrel (arm64): rBahadur_1.1.0.tgz, r-release (x86_64): rBahadur_1.1.0.tgz, r-oldrel (x86_64): rBahadur_1.1.0.tgz
Old sources: rBahadur archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=rBahadur to link to this page.