simulate8mn: simulates a multinormal vector

View source: R/f07.normal.code.r

simulate8mnR Documentation

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)

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.

Value

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

Examples

 print(simulate8mn(rbmn0mn.01, 12));

rbmn documentation built on July 9, 2023, 6:37 p.m.