Learn R Programming

rbmn (version 0.9-6)

simulate8mn: simulates a multinormal vector

Description

returns a matrix of simulated values with the variable in columns and the simulations in rows.

Usage

simulate8mn(mn, nbs, tol=1e-7)

Value

A matrix/data frame of size : nbs x length(mn$mu)

Arguments

mn

list defining the distribution of the initial vector with $mu, its expectation, and $gamma, its variance matrix.

nbs

number of simulations to return.

tol

tolerance value to be transmitted to mvrnorm.

Details

Just a call to the basic function mvrnorm. Names of the variables are taken from those of mn$mu, when these does not exist, standard ones are provided.

Examples

Run this code
 print(simulate8mn(rbmn0mn.01, 12));

Run the code above in your browser using DataLab