get.par: Extract estimated or fixed parameter values from an...

Description Usage Arguments Details Value Examples

View source: R/helpers.r

Description

Extracts, estimated, derived, and fitted parameters from a model fitted using admbsecr.

Usage

1
get.par(fit, pars = "all", cutoff = FALSE, as.list = FALSE)

Arguments

pars

A character vector containing names of parameter values to be extracted. Alternatively, the character string "all" will extract all parameters, fixed or otherwise, and the character string "fitted" extracts only fitted parameters (i.e., not the effective survey area). See the 'Details' section for the admbsecr function's documentation for information on the parameters that are fitted.

cutoff

Logical, if TRUE, the cutoff value for an acoustic fit is included.

as.list

Logical, if TRUE, each parameter value is returned as the component of a list, where component names give the parameter names. In this case, the returned object is suitable as the argument of a variety of functions (e.g., sv or fix for the admbsecr function, or pars for the sim.capt function). If FALSE, parameter values are returned as part of a named vector.

fit

A fitted model from admbsecr.

Details

This is a similar function to coef.admbsecr, however get.par also allows for extraction of parameters that have been fixed using admbsecr's fix argument.

Value

See above information about the argument as.list. If as.list is TRUE, then a list is returned. If as.list is FALSE, then a named character vector is returned.

Examples

1
2
get.par(fit = example$fits$simple.hn, pars = "all")
get.par(fit = example$fits$bearing.hn, pars = c("D", "kappa", "esa"), as.list = TRUE)

admbsecr documentation built on May 31, 2017, 3:18 a.m.