Skip to contents

Extract deviance of galamm object

Usage

# S3 method for class 'galamm'
deviance(object, ...)

Arguments

object

Object of class galamm, returned from galamm.

...

Other arguments passed on to other methods. Currently not used.

Value

A numeric value giving the deviance of the model fit.

Examples

# Linear mixed model with heteroscedastic residuals
mod <- galamm(
  formula = y ~ x + (1 | id),
  dispformula = ~ (1 | item),
  data = hsced
)

# Extract deviance
deviance(mod)
#> [1] 4116.28