rmvn {fitmixst4} | R Documentation |
Generates random observation for the normal distribution
rmvn(n, p, mean = rep(0, p), cov = diag(p))
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. |
gernerates random observations for the normal distribution.
mu=1; Sigma=1; y <- rmvn(n=100,p=1,mean=mu,cov=Sigma)