[R-sig-ME] "parm" parameter in lme4::confint.merMod

Henrik Singmann henrik.singmann at psychologie.uni-freiburg.de
Sun May 18 13:34:36 CEST 2014


Hi Jake,

I think fixef() or names(fixef()) gives you what you want:

require(lme4)
data(md_16.4, package = "afex")
m1 <-  lmer(induct ~ cond*cog + (cog|room:cond), md_16.4)

fixef(m1)
## (Intercept)       cond1         cog   cond1:cog
## -6.14153043 10.32001485  0.66722061 -0.02520666

confint(m1, parm = c(3,2), method="Wald")
##             2.5 %    97.5 %
## cog     0.2498764  1.084565
## cond1 -18.4845630 39.124593

I hope I didn't misunderstand your question,
Henrik


Am 18.05.2014 08:03, schrieb Jake Westfall:
> Hi all,
>
> According to the documentation, in confint.merMod() you can use the "parm" parameter to get confidence intervals for only a specified subset of parameters by indicating the integer positions of the desired parameters. But how is one supposed to know which integer positions correspond with which parameters? I poked around a little but found nothing in the methods or slots of the merMod object that indicates this, and nothing in the documentation detailing this. Have I missed something? I guess you can call the function leaving that argument at its default, and the order of the parameters in that output will correspond with the integer positions, but this approach would seem to defeat the point of being able to specify particular subsets of parameters...
>
> Jake 		 	   		
> 	[[alternative HTML version deleted]]
>

-- 
Dr. Henrik Singmann
Albert-Ludwigs-Universität Freiburg, Germany
http://www.psychologie.uni-freiburg.de/Members/singmann



More information about the R-sig-mixed-models mailing list