gen_polychoric: Generate Polychoric Sample

View source: R/gen_polychoric.R

gen_polychoricR 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

gen_polyseries gen_rho

Examples

gen_polychoric(100,0.5,-1:1,1:2)

MCCM documentation built on May 29, 2024, 12:09 p.m.

Related to gen_polychoric in MCCM...