read_pars: Read in parameters from an AD Model Builder run

Description Usage Arguments Details Value Warning Author(s) See Also

Description

Reads coefficients, standard errors, log-likelihoods, maximum gradients, correlation and variance-covariance matrices from AD Model Builder output files

Usage

1
2
read_pars(fn,drop_phase=TRUE)
read_psv(fn,names)

Arguments

fn

(character) Base name of AD Model Builder

names

(character) Names of variables

drop_phase

(logical) drop negative-phase (fixed) parameters from results?

Details

Given the output from an ADMB run on FOO.tpl, read_pars reads the files FOO.par (parameters, log-likelihood, max gradient); FOO.std (standard deviations); and FOO.cor (correlations). read_psv reads the output of MCMC runs

Value

coefficients

parameter estimates

coeflist

parameter estimates in list format, with proper shape (vectors, matrices, etc.)

se

estimated standard errors of coefficients

loglik

log-likelihood

maxgrad

maximum gradient of log-likelihood surface

cor

correlation matrix

vcov

variance-covariance matrix

npar

number of parameters

Warning

The coeflist component is untested for data structures more complicated than scalars, vectors or matrices (i.e. higher-dimensional or ragged arrays)

Author(s)

Ben Bolker

See Also

write_pin, write_dat


R2admb documentation built on May 2, 2019, 5:19 p.m.