BinNor 2.3.4 is an R package that generates multiple binary and normal variables simultaneously from marginal characteristics and an association structure.
BinNor is an R package for simultaneous generation of multivariate binary and normal variates. It provides functions for generating multiple binary and normal variables at once given marginal characteristics and an association structure, based on the methodology of Demirtas and Doganay (2012).
The package contains eight functions. The main functions are compute.sigma.star, jointly.generate.binary.normal and simulation; the validation functions lower.tri.to.corr.mat, validation.bin, validation.nor, validation.range and validation.corr check the specified quantities. Version 2.3.4 was published on CRAN on 2025-04-14.
| Package version | 2.3.4 |
|---|---|
| License | GPL-2 |
| Number of functions | Eight functions |
| Publication date | 2025-04-14 |
It generates multiple binary and normal variables simultaneously given marginal characteristics and an association structure, based on the methodology of Demirtas and Doganay (2012).
jointly.generate.binary.normal generates multiple binary and normal variables simultaneously given marginal characteristics and association structures.
It computes the intermediate correlation matrix by assembling tetrachoric correlations for binary-binary combinations, biserial correlations for binary-normal combinations, and specified correlation for normal-normal combinations.
It repeats the data generation process many times and reports averaged proportion, mean, variance and correlation estimates across replications.