Re: [R] Problem with lmer and fixef

2012-04-12 Thread swertie
Thank you very much. I started R again and loaded less libraries and it
worked!  I didn't know about this problem, the next time, I'll check for
this before looking a whole afternoon for alternative methods ;).

--
View this message in context: 
http://r.789695.n4.nabble.com/Problem-with-lmer-and-fixef-tp4551816p4552053.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org 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.


Re: [R] Problem with lmer and fixef

2012-04-12 Thread Ben Bolker
swertie  voila.fr> writes:

> I am trying to do contrasts after applying a binomial mixed effect model
> with the function lmer. I have to extract the fix effect values, but as I
> write fixef(model), I get this error message:  
> 
> Error in UseMethod("fixef") : 
> no method for 'fixef' with objects of class "mer" 
> 
> Has anybody some ideas why? And how can I then post-hoc testing my data if I
> cannot do the contrasts?
> 
> Thank you very much

  The most likely answer is that you have loaded another package that
interferes with the lme4 package, most likely nlme.  For example:

library(lme4) ## CRAN version, or use lme4.0 from r-forge
example(lmer)  ## to generate some fitted values
fixef(fm1) ## works
library(nlme) ## produces warning about masking "The following objects ..."
fixef(fm1) ## gives your error
detach("package:nlme") 
fixef(fm1)  ## works again

  other possible culprits are the glmmADMB package, or other
packages that depend on (and hence automatically load) nlme.
See sessionInfo() ...

  Questions like this are probably more suited to the r-sig-mixed-models
list.

  Ben Bolker

__
R-help@r-project.org 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.


[R] Problem with lmer and fixef

2012-04-12 Thread swertie
Hello,
I am trying to do contrasts after applying a binomial mixed effect model
with the function lmer. I have to extract the fix effect values, but as I
write fixef(model), I get this error message:  

Error in UseMethod("fixef") : 
no method for 'fixef' with objects of class "mer" 

Has anybody some ideas why? And how can I then post-hoc testing my data if I
cannot do the contrasts?

Thank you very much

--
View this message in context: 
http://r.789695.n4.nabble.com/Problem-with-lmer-and-fixef-tp4551816p4551816.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org 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.