Learn R Programming

MCCM (version 0.1.0)

gen_polychoric: Generate Polychoric Sample

Description

Generate polychoric sample with hidden distribution: binormal with correlation coefficient rho.

Usage

gen_polychoric(n, rho, a, b)

Value

Polychoric sample with size n(in a 2*n matrix).

Arguments

n

sample size.

rho

correlation coefficient.

a

the cutoff points array.

b

the cutoff points array.

See Also

gen_polyseries gen_rho

Examples

Run this code
gen_polychoric(100,0.5,-1:1,1:2)

Run the code above in your browser using DataLab