Extract weights from a glmmTMB object
# S3 method for glmmTMB
weights(object, type = "prior", ...)a fitted glmmTMB object
weights type
additional arguments (not used; for methods compatibility)
Returns the prior weights used in fitting, i.e. weights
specified in the weights argument. For binomial-type families
fit with a two-column matrix response (cbind(successes, failures)),
the total number of trials is included as well (multiplied by the
weights argument, if specified), matching the behaviour of
glm and glmer.
Since glmmTMB does not fit models via iteratively
weighted least squares, working weights (see weights.glm) are unavailable.