rmvnorm2: A function to simulate MV Normal data

rmvnorm2R Documentation

A function to simulate MV Normal data

Description

See McElreaths Rethinking package for details

Usage

rmvnorm2(
  n,
  Mu = rep(0, length(sigma)),
  sigma = rep(1, length(Mu)),
  Rho = diag(length(Mu)),
  method = "chol"
)

Arguments

n

Number of samples.

Mu

Mean vector.

sigma

Variance vector.

Rho

Correlation matrix.

method

See details in Rethinking.

Value

MV normal samples.


ctross/STRAND documentation built on Dec. 15, 2024, 6:02 a.m.