coef.ascr: Extract ascr model coefficients

View source: R/methods.r

coef.ascrR Documentation

Extract ascr model coefficients

Description

Extracts estimated and derived parameters from a model fitted using fit.ascr.

Usage

## S3 method for class 'ascr'
coef(object, pars = "fitted", ...)

## S3 method for class 'ascr.boot'
coef(object, pars = "fitted", correct.bias = FALSE, ...)

Arguments

object

A fitted model from fit.ascr.

pars

A character vector containing either parameter names, or a subset of "all", "derived", "fitted", and "linked"; "fitted" corresponds to the parameters of interest, "derived" corresponds to quantities that are functions of these parameters (e.g., the effective survey area or animal density from an acoustic survey), and "linked" corresponds to the parameters AD Model Builder has maximised the likelihood over.

...

Other parameters (for S3 generic compatibility).

correct.bias

Logical, if TRUE, estimated biases are subtracted from estimated parameter values.

Examples

coef(example.data$fits$simple.hn)
coef(example.data$fits$simple.hn, pars = "all")
coef(example.data$fits$simple.hn, pars = "derived")


b-steve/ascr documentation built on Aug. 15, 2022, 2:38 p.m.