rmvn {fitmixst4}R Documentation

Generates random observation for the normal distribution

Description

Generates random observation for the normal distribution

Usage

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

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

[Package fitmixst4 version 0.281 Index]