PoisBinOrdNor (version 1.0)

corr.nn4bb: Finds the tetrachoric correlation based on user-specified correlation between binary variables.

Description

This function computes the tetrachoric correlation given the correlation for a pair of binary variables (phi coefficient).

Usage

corr.nn4bb(p1, p2, BB.cor)

Arguments

p1
Probability parameter for the first binary variable.
p2
Probability parameter for the second binary variable.
BB.cor
Pre-specified correlation for a pair of binary variables.

Value

  • A tetrachoric correlation coefficient.

References

Amatya, A. and Demirtas, H. (2016). Simultaneous generation of multivariate mixed data with Poisson and normal marginals. Journal of Statistical Computation and Simulation. In press.

Examples

Run this code
corr.nn4bb(0.43, 0.7, 0.129)

Run the code above in your browser using DataLab