[R] lme4: Extract fixed effects Val, SE, t, p

Doran, Harold HDoran at air.org
Fri Dec 16 13:54:50 CET 2005


There are certain functions which can easily extracts the various
components, however. For instance, you can grab the fixed effects using
fixef(), the variance components using VarCorr, and the standard errors
of the fixed effects using vcov() 

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Dieter Menne
Sent: Friday, December 16, 2005 3:28 AM
To: r-help at stat.math.ethz.ch
Subject: Re: [R] lme4: Extract fixed effects Val, SE, t, p

Zev Ross <zev <at> zevross.com> writes:

> Using glmmPQL you can extract the full table of estimates, SE, 
> p-values etc using as an example:
> 
> mymodel<-glmmPQL(mymodel here)
> 
> summary(mymodel)[[18]]
> 
> How can I pull this table out of a lmer object in lme4?


Looks like it is not so easy, the code that produces the table is rather
hidden in Matrix\r\lmer.R, about line 400


setMethod("show", "summary.lmer",
          function(object) {
              fcoef <- object at fixed
              useScale <- object at useScale
....

You might be able to write your own code using the outline given there,
but you 
could run into trouble with method getFixDF.

Dieter

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list