getADMBHessian: Get ADMB Hessian

View source: R/utilities.R

getADMBHessianR Documentation

Get ADMB Hessian

Description

Reads the hessian file from any ADMB fit. Used here with the a4a model.

Usage

getADMBHessian(wkdir)

getADMBCovariance(wkdir)

Arguments

wkdir

the location of the admb output

Value

a list with the following elements

Note

getADMBHessian is intended to be used internally

Examples

# load some data
data(ple4)
data(ple4.indices)
# choose a working directory
wkdir <- tempfile()
# do an 'assessment' fit with default settings (not recomended!) and keep results in wkdir
fit <- sca(stock=ple4,indices=ple4.indices,wkdir=wkdir)
hessInfo <- getADMBHessian(wkdir)
str(hessInfo)
# calculate covariance matrix
Sigma <- solve(hessInfo$hes)

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