powered by
Generate polychoric sample with hidden distribution: binormal with correlation coefficient rho.
gen_polychoric(n, rho, a, b)
Polychoric sample with size n(in a 2*n matrix).
sample size.
correlation coefficient.
the cutoff points array.
gen_polyseries gen_rho
gen_polychoric(100,0.5,-1:1,1:2)
Run the code above in your browser using DataLab