Learn R Programming

glmmTMB (version 1.1.9)

weights.glmmTMB: Extract weights from a glmmTMB object

Description

Extract weights from a glmmTMB object

Usage

# S3 method for glmmTMB
weights(object, type = "prior", ...)

Arguments

object

a fitted glmmTMB object

type

weights type

...

additional arguments (not used; for methods compatibility)

Details

At present only explicitly specified prior weights (i.e., weights specified in the weights argument) can be extracted from a fitted model.

  • Unlike other GLM-type models such as glm or glmer, weights() does not currently return the total number of trials when binomial responses are specified as a two-column matrix.

  • Since glmmTMB does not fit models via iteratively weighted least squares, working weights (see weights.glm) are unavailable.