Learn R Programming

AICcmodavg (version 1.35)

extractSE.mer: Extract SE of Fixed Effects of 'glmer' Fit

Description

This function extracts the standard errors (SE) of the fixed effects of a generalized linear mixed model fit with 'glmer' and adds the appropriate labels.

Usage

extractSE.mer(mod)

extractSE.merMod(mod)

Arguments

mod
an object of 'mer' or 'merMod' class resulting from the fit of 'glmer'.

Value

  • Returns the SE's of the fixed effects with the appropriate labels for each. }

    author{ Marc J. Mazerolle }

    seealso{ code{modavg}, code{glmer}, code{lmer} } examples{ ##modified example from ?glmer require(lme4) ##create proportion of incidence cbpp$prop <- cbpp$incidence/cbpp$size gm1 <- glmer(prop ~ period + (1 | herd), family = binomial, weights = size, data = cbpp) ##print summary summary(gm1) ##extract variance-covariance matrix of fixed effects vcov(gm1) ##extract SE's of fixed effects - no labels sqrt(diag(vcov(gm1))) #no labels extractSE.mer(gm1) #with labels detach(package:lme4)

Details

These are extractor functions that use 'vcov.mer' and 'vcov.merMod' from the 'lme4' package and are called by 'modavg.mer' and 'modavg.merMod'.