Learn R Programming

MCCM (version 0.1.0)

gen_rho: Generate Specific Binormal Distribution

Description

Generate random number of binormal distribution with 0 mean unit variance and correlation coefficient rho.

Usage

gen_rho(n, rho)

Value

Binormal random number with length n(in a 2*n matrix).

Arguments

n

sample size.

rho

correlation coefficient.

See Also

gen_polyseries gen_polychoric

Examples

Run this code
gen_rho(100,0.5)

Run the code above in your browser using DataLab