rmvlnorm: simulated correlated lognormal deviates, according to...

Description Usage Arguments Value Author(s) References Examples

Description

simulated correlated lognormal deviates, according to appendix of Wang and Carey 2004 JASA

Usage

1
rmvlnorm(n = 100, lmu = c(2, 3, 4), lcov = diag(c(2, 3, 4),3,3))

Arguments

n

number of p-vectors to be returned

lmu

p-vector of response mean

lcov

pxp matrix of response covariance

Value

an n x p matrix of marginally lognormal responses with specified mean and covariance

Author(s)

VJ Carey

References

Wang YG, Carey VJ, Unbiased estimating equations ..., JASA Sept 2004, v99, no 467, 845-853

Examples

1
2
3
4
5
6
7
8
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
mm = matrix(.75, 3, 3)
diag(mm) = 1
var( rmvlnorm( 1000, c(2,3,4), mm ) )

yags documentation built on May 2, 2019, 5:46 p.m.

Related to rmvlnorm in yags...