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 Nov. 14, 2024, 11:50 p.m.