gen_polychoric {MCCM} | R Documentation |
Generate polychoric sample with hidden distribution: binormal with correlation coefficient rho.
gen_polychoric(n, rho, a, b)
n |
sample size. |
rho |
correlation coefficient. |
a |
the cutoff points array. |
b |
the cutoff points array. |
Polychoric sample with size n(in a 2*n matrix).
gen_polychoric(100,0.5,-1:1,1:2)