Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extractSE

Extract SE of Fixed Effects


Description

This function extracts the standard errors (SE) of the fixed effects of a mixed model fit with coxme, glmer, lmer, lmerModLmerTest, and lmekin and adds the appropriate labels.

Usage

extractSE(mod, ...)

## S3 method for class 'coxme'
extractSE(mod, ...)

## S3 method for class 'lmekin'
extractSE(mod, ...)

## S3 method for class 'mer'
extractSE(mod, ...)

## S3 method for class 'merMod'
extractSE(mod, ...)

## S3 method for class 'lmerModLmerTest'
extractSE(mod, ...)

Arguments

mod

an object of coxme, lmekin, mer, merMod, or lmerModTest class.

...

additional arguments passed to the function.

Details

These extractor functions use vcov.coxme, vcov.lmekin, vcov.mer, and vcov.merMod. Some of these functions are called by modavg and modavgShrink, depending on the class of the objects.

Value

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

Author(s)

Marc J. Mazerolle

See Also

Examples

##modified example from ?glmer
## Not run: 
if(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(gm1)  #with labels
detach(package:lme4)
}

## End(Not run)

AICcmodavg

Model Selection and Multimodel Inference Based on (Q)AIC(c)

v2.3-1
GPL (>= 2)
Authors
Marc J. Mazerolle <marc.mazerolle@sbf.ulaval.ca>
Initial release
2020-08-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.