generate.data {yest}R Documentation

Simulate from a Multivariate Gaussian Distribution

Description

Produces samples from the specified Gaussian distribution.

Usage

generate.data(V=NA,n=1000,Sigma=NA,mu=c(0,0,0,0))

Arguments

V inverse variance matrix of Gaussian distribution
Sigma variance matrix of Gaussian distribution
n number of rows to be generated
mu expected value of Gaussian distribution

Details

Either Sigma or V must be entered.

Value

A matrix of n rows and 4 columns. Each row is generated from a multivariate Gaussian distribution with parameters mu and Sigma.

See Also

mvrnorm

Examples

V<-ind.rgauss(type=12)
data<-generate.data(V)
summary(data)

[Package yest version 0.4-1 Index]