gen_polychoric {MCCM} | R Documentation |
Generate Polychoric Sample
Description
Generate polychoric sample with hidden distribution: binormal with correlation coefficient rho.
Usage
gen_polychoric(n, rho, a, b)
Arguments
n |
sample size. |
rho |
correlation coefficient. |
a |
the cutoff points array. |
b |
the cutoff points array. |
Value
Polychoric sample with size n(in a 2*n matrix).
See Also
Examples
gen_polychoric(100,0.5,-1:1,1:2)
[Package MCCM version 0.1.0 Index]