vcov.scampr: vcov for objects of class 'scampr'

View source: R/vcov.scampr.R

vcov.scamprR Documentation

vcov for objects of class 'scampr'

Description

vcov for objects of class 'scampr'

Usage

## S3 method for class 'scampr'
vcov(object, ..., getJointPrecision = T)

Arguments

object

a scampr model object

...

NA

getJointPrecision

a logical indicating whether to calculate the full joint precision matrix, including random effects (TRUE) or just the fixed effects (FALSE).

Value

A matrix of the estimated covariances between the parameter estimates in the linear or non-linear predictor of the model. This should have row and column names corresponding to the parameter names given by the coef method.

Examples

# Get the gorilla nesting data
dat <- gorillas

# Standardise the elevation covariate
dat$elev.std <- scale(dat$elevation)

# Fit a scampr model to the point pattern
m <- scampr(pres ~ elev.std, data = dat, include.sre = F)

vcov(m)

ElliotDovers/scampr documentation built on March 17, 2024, 3:27 p.m.