se.fixef: Standard errors of fixed estimates

Description Usage Arguments Value Note Author(s) Examples

View source: R/se.fixef.R

Description

Returns the standard errors of the fixed estimates in a mixed effects model.

Usage

1
se.fixef(model)

Arguments

model

Mixed effects regression model of class 'mer'

Value

A vector with the standard errors of the fixed parameters of the model.

Note

This is a small helper-function to the influence.ME package. For more elaborate functionality, refer to the se.fixef function in the 'car' package.

Author(s)

Rense Nieuwenhuis, Ben Pelzer, Manfred te Grotenhuis

Examples

1
2
3
4
5
6
7
## Not run: 
data(school23)
model <- lmer(math ~  homework + structure + (1 | school.ID), data=school23)
summary(model)
se.fixef(model)

## End(Not run)

Example output

Loading required package: lme4
Loading required package: Matrix

Attaching package: 'influence.ME'

The following object is masked from 'package:stats':

    influence

Linear mixed model fit by REML ['lmerMod']
Formula: math ~ homework + structure + (1 | school.ID)
   Data: school23

REML criterion at convergence: 3688.2

Scaled residuals: 
    Min      1Q  Median      3Q     Max 
-2.6481 -0.6741  0.0276  0.6148  2.9537 

Random effects:
 Groups    Name        Variance Std.Dev.
 school.ID (Intercept) 18.91    4.349   
 Residual              70.22    8.380   
Number of obs: 519, groups:  school.ID, 23

Fixed effects:
                         Estimate Std. Error t value
(Intercept)               57.3157     5.4200  10.575
homeworkLess than 1 hour  -1.1868     1.4781  -0.803
homework1 hour             0.9823     1.6004   0.614
homework2 hours            5.6850     1.8648   3.049
homework3 hours            9.1226     1.8866   4.836
homework4-6 hours          8.5542     2.0289   4.216
homework7-9 hours          8.5383     3.7576   2.272
homework10 or more         8.3612     5.1019   1.639
structure                 -2.0497     1.3071  -1.568

Correlation of Fixed Effects:
            (Intr) hmLt1h hmwr1h hmwr2h hmwr3h hm4-6h hm7-9h hm10om
hmwrkLsst1h -0.243                                                 
homework1hr -0.198  0.794                                          
homewrk2hrs -0.188  0.678  0.636                                   
homewrk3hrs -0.201  0.681  0.639  0.560                            
hmwrk4-6hrs -0.209  0.632  0.592  0.522  0.550                     
hmwrk7-9hrs -0.088  0.350  0.338  0.283  0.299  0.282              
hmwrk10ormr -0.068  0.256  0.248  0.208  0.225  0.212  0.123       
structure   -0.954  0.015 -0.017  0.004  0.019  0.041 -0.007  0.000
[1] 5.420007 1.478076 1.600378 1.864821 1.886567 2.028886 3.757594 5.101874
[9] 1.307096

influence.ME documentation built on June 7, 2017, 9:03 a.m.