genBVN: Creates realizations of a normal Bi-variate random variable

Description Usage Arguments Value Examples

Description

Creates realizations of a normal Bi-variate random variable

Usage

1
genBVN(n = 1, seed = 1234, muXY = c(0, 1), sigmaXY = diag(2))

Arguments

n

Number of realizations.

seed

Set seed.

muXY

Vector of two numbers that represent means of features.

sigmaXY

Variance Covariance Matrix

Value

Realizations of n bivariate normal random variable with means muXY and variance covariance sigmaXY.

Examples

1
2
3
4
5
6
rho  <- -0.2
sdX <- 2
sdY <- 8
muXY <- c(0,1)
sigmaXY <- sigmaXY(rho, sdX, sdY)
genBVN (n = 1, seed = 1234, muXY, sigmaXY)

rishi1226/lClass documentation built on May 27, 2019, 9:10 a.m.