rmvnorm: Draw samples from multivariate, correlated normal...

View source: R/mvdistributions.R

rmvnormR Documentation

Draw samples from multivariate, correlated normal distribution with counts correlated according to Sigma

Description

Draw samples from multivariate, correlated normal distribution with counts correlated according to Sigma

Usage

rmvnorm(
  n = 100,
  mu = rep(0, 10),
  Sigma = diag(10),
  tol = 1e-06,
  empirical = TRUE
)

Arguments

n

number of samples to draw

mu

mean vector for variables (of length D)

Sigma

DxD covariance or correlation matrix

tol

numerical tolerance for a zero eigenvalue (check for PD of Sigma)

empirical

is Sigma the empirical correlation?

Value

Dxn matrix with Gaussian data


zdk123/SpiecEasi documentation built on Oct. 20, 2023, 6:49 a.m.