rcornorm: Generate a vector of two correlated standard Gaussian RVs

View source: R/gbm-family.R

rcornormR Documentation

Generate a vector of two correlated standard Gaussian RVs

Description

Uses the Cholesky decomposition on the 2x2 matrix to simulate a vector of two correlated standard normals.

Usage

rcornorm(n, rho)

Arguments

n

number of vectors to simulate

rho

the correlation factor

Value

numeric vector/matrix


shill1729/findistr documentation built on May 20, 2024, 9:43 a.m.