Learn R Programming

MCCM (version 0.1.0)

gen_polyseries: Generate Polyseries Sample

Description

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

Usage

gen_polyseries(n, rho, a)

Value

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

Arguments

n

sample size.

rho

correlation coefficient.

a

the cutoff points array.

See Also

gen_rho gen_polychoric

Examples

Run this code
gen_polyseries(100,0.5,-1:1)

Run the code above in your browser using DataLab