Learn R Programming

MLGL (version 1.0.0)

simuBlockGaussian: Simulate multivariate Gaussian samples with block diagonal variance matrix

Description

Simulate n samples from a gaussian multivariate law with 0 vector mean and block diagonal variance matrix with diagonal 1 and block of rho.

Usage

simuBlockGaussian(n, nBlock, sizeBlock, rho)

Value

a matrix of size n * (nBlock * sizeBlock) containing the samples

Arguments

n

number of samples to simulate

nBlock

number of blocks

sizeBlock

size of blocks

rho

correlation within each block

Author

Quentin Grimonprez

Examples

Run this code
X <- simuBlockGaussian(50, 12, 5, 0.7)

Run the code above in your browser using DataLab