simulates a multinormal vector

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.