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

From: Doran, Harold <HDoran_at_air.org>
Date: Fri 16 Dec 2005 - 23:54:50 EST


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@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Dieter Menne Sent: Friday, December 16, 2005 3:28 AM
To: r-help@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@fixed
              useScale <- object@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@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

R-help@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 Received on Sat Dec 17 00:03:00 2005

This archive was generated by hypermail 2.1.8 : Sat 17 Dec 2005 - 02:30:55 EST