Skip to contents

Standard model-object accessors for a fit returned by gllvmTMB() on long-format multivariate data. (Internally the fit has class gllvmTMB_multi, which is what these S3 methods dispatch on, but you just call print(fit), summary(fit), logLik(fit) etc. as usual.)

Usage

# S3 method for class 'gllvmTMB_multi'
print(x, ...)

# S3 method for class 'gllvmTMB_multi'
summary(object, ...)

# S3 method for class 'summary.gllvmTMB_multi'
print(x, digits = 3, ...)

# S3 method for class 'gllvmTMB_multi'
logLik(object, ...)

Arguments

x, object

A gllvmTMB_multi fit.

...

Currently unused.

digits

Decimal digits in the printed summary. Default 3.

Details

  • print() shows the active covstructs, the number of fixed effects, and the converged log-likelihood.

  • summary() adds a fixed-effects table with SEs, the global and local trait correlation matrices, per-trait ICCs (manuscript Eq. 13), and global / local communalities (Eqs. 14-15).

  • logLik() returns the converged maximum log-likelihood with df = length(opt$par) and nobs = length(y), so AIC() and BIC() all work directly.