View source: R/gen_polychoric.R
gen_polychoric | 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_polyseries gen_rho
gen_polychoric(100,0.5,-1:1,1:2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.