simulate8mn: simulates a multinormal vector

Description Usage Arguments Details Value Examples

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

Description

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

Usage

1
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

1

rbmn documentation built on May 29, 2017, 4:58 p.m.