mvrnorm-a4aGr: mvrnorm

mvrnorm for a4aGRR Documentation

mvrnorm

Description

Method to generate multivariate normal parameters for a4aGr objects.

Usage

## S4 method for signature 'numeric,a4aGr,ANY,ANY,ANY,ANY'
mvrnorm(n = 1, mu)

Arguments

n

the number of simulations to be generated

mu

an a4aGr object

Value

an a4aGr object with n iterations

Examples

mm <- matrix(NA, ncol=3, nrow=3)
diag(mm) <- c(50, 0.001,0.001)
mm[upper.tri(mm)] <- mm[lower.tri(mm)] <- c(0.1,0.01,0.00004)
md <- ~linf*(1-exp(-k*(t-t0)))
imd <- ~t0-1/k*log(1-len/linf)
prs <- FLPar(linf=58.5, k=0.086, t0=0.001, units=c("cm","yr^-1","yr"))
vbObj <- a4aGr(grMod=md, grInvMod=imd, params=prs, vcov=mm, distr="norm")
vbObj <- mvrnorm(100,vbObj)

flr/FLa4a documentation built on June 4, 2023, 11:05 a.m.