meatHC: Simple Cluster Based Meat Matrix Estimator

meatHCR Documentation

Simple Cluster Based Meat Matrix Estimator

Description

This (simplified) method for a new S3 generic based on meatHC computes the meat matrix for a fitted glmmTMB model, which is the cross-product of the cluster-wise score vectors (empirical estimating functions) extracted by estfun.

Usage

meatHC(x, ...)

## Default S3 method:
meatHC(x, ...)

## S3 method for class 'glmmTMB'
meatHC(x, ...)

Arguments

x

a glmmTMB object fitted with ML (REML is not supported).

...

additional arguments passed to estfun, in particular full, cluster and rawnames arguments.

Value

A square matrix where each element represents the cross-product of the score vectors for the parameters in the model. The rows and columns are named according to the parameter names.

Note

This meat matrix is not scaled by the number of clusters.

Examples

m <- glmmTMB(count ~ mined + (1 | spp), data = Salamanders, family = nbinom1)
meatHC(m)
meatHC(m, full = TRUE)

glmmTMB documentation built on Jan. 15, 2026, 9:07 a.m.