Learn R Programming

DLMtool (version 4.4.1)

negcorlogspace: A function that samples multivariate normal (logspace) variables

Description

A function that samples multivariate normal (logspace) variables

Usage

negcorlogspace(xmu, ymu, xcv = 0.1, nsim, cor = -0.9, ploty = F)

Arguments

xmu

The mean (normal space) of the first (x) variable

ymu

The mean (normal space) of the second (y) variable

xcv

The coefficient of variation (normal space, log normal sd) of the x variable

nsim

The number of random draws

cor

The off-diagonal (symmetrical) correlation among x and y

ploty

Whether a plot of the sampled variables should be produced