vcov.ascr: Extract the variance-covariance matrix from an ascr model...

View source: R/methods.r

vcov.ascrR Documentation

Extract the variance-covariance matrix from an ascr model object

Description

Extracts the variance-covariance matrix for parameters in a model fitted using fit.ascr.

Usage

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

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).

Examples

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


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