summaryMA function

Summary of model averaged linear mixed models

Summary of model averaged linear mixed models

summaryMA is a function used to produce result summaries of the model averaging approach.

summaryMA(object, randeff = FALSE)

Arguments

  • object: A object created by the model averaging function.
  • randeff: logical. Indicator whether the model averaged random effects should also be part of the output. The default setting is FALSE.

Returns

Outputs a summary of the model averaged random and fixed effects, as well as the calculated weights of the individual candidate models.

Examples

data(Orthodont, package = "nlme") models <- list( model1 <- lmer(formula = distance ~ age + Sex + (1 | Subject) + age:Sex, data = Orthodont), model2 <- lmer(formula = distance ~ age + Sex + (1 | Subject), data = Orthodont), model3 <- lmer(formula = distance ~ age + (1 | Subject), data = Orthodont), model4 <- lmer(formula = distance ~ Sex + (1 | Subject), data = Orthodont)) foo <- modelAvg(models = models) summaryMA(foo)

References

Greven, S. and Kneib T. (2010) On the behaviour of marginal and conditional AIC in linear mixed models. Biometrika 97(4), 773-789.

See Also

lme4-package, lmer

Author(s)

Benjamin Saefken & Rene-Marcel Kruse

  • Maintainer: David Ruegamer
  • License: GPL (>= 2)
  • Last published: 2025-04-04

Useful links