Re: [R] Retrieving p-values and z values from lmer output

From: Rick Bilonick <rab45+_at_pitt.edu>
Date: Tue 22 Aug 2006 - 07:10:42 EST

On Mon, 2006-08-21 at 16:52 -0400, Rick Bilonick wrote:
> I can't find a way to retrieve z values and p-values from the output
> from lmer in the lme4 package. How is this done?
>
> Rick B.
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

I was able to do it this way:

> slotNames(summary(fit.lmer))

 [1] "isG"       "methTitle" "logLik"    "ngrps"     "sigma"     "coefs"
 [7] "vcov"      "REmat"     "AICtab"    "flist"     "Zt"        "X"
[13] "y"         "wts"       "wrkres"    "method"    "useScale"
"family"
[19] "call"      "cnames"    "nc"        "Gp"        "XtX"       "ZtZ"
[25] "ZtX"       "Zty"       "Xty"       "Omega"     "L"         "RZX"
[31] "RXX"       "rZy"       "rXy"       "devComp"   "deviance"  "fixef"
[37] "ranef"     "RZXinv"    "bVar"      "gradComp"  "status"


> slot(summary(fit.lmer),"coefs")
Estimate Std. Error z value Pr(>|z|)
(Intercept) -0.02626325 0.03114850 -0.8431628 3.991374e-01 timeAfter 0.42322569 0.02870844 14.7422023 3.453370e-49

> slot(summary(fit.lmer),"coefs")[,4]

 (Intercept) timeAfter
3.991374e-01 3.453370e-49

Rick B.



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 and provide commented, minimal, self-contained, reproducible code. Received on Tue Aug 22 07:28:06 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 22 Aug 2006 - 08:22:46 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.