powered by
Simulate n samples from a gaussian multivariate law with 0 vector mean and block diagonal variance matrix with diagonal 1 and block of rho.
simuBlockGaussian(n, nBlock, sizeBlock, rho)
a matrix of size n * (nBlock * sizeBlock) containing the samples
number of samples to simulate
number of blocks
size of blocks
correlation within each block
Quentin Grimonprez
X <- simuBlockGaussian(50, 12, 5, 0.7)
Run the code above in your browser using DataLab