rmvn: Generates random observation for the normal distribution

Description Usage Arguments Value Examples

View source: R/rmvn.R

Description

Generates random observation for the normal distribution

Usage

1
rmvn(n, p, mean = rep(0, p), cov = diag(p))

Arguments

n

number of random observations.

p

dimension of the normal distribution.

mean

a mean vector with length p.

cov

a covariance matrix of dimension pxp.

Value

gernerates random observations for the normal distribution.

Examples

1
2
mu=1; Sigma=1;
y <- rmvn(n=100,p=1,mean=mu,cov=Sigma)

fitmixst4 documentation built on Sept. 29, 2019, 3 p.m.

Related to rmvn in fitmixst4...