Skip to content

lmer p-value extraction: LanguageR S4 object error

5 messages · Ben Bolker, Daniel Zvirzdin, Cyrus Shaoul

#
On 11-05-27 01:00 PM, Daniel Zvirzdin wrote:
It's a little dodgy to use year (with only 3 levels) as a random
effect -- you might try with a fixed effect and see whether you get
different results.

  I don't understand why you're using aovlmer.fnc with
which=c("TreatC","TreatUC") -- it looks to me as though this function is
intended to be used to test hypotheses involving multiple parameters
simultaneously equalling zero.  Testing both levels of the treatment in
this way doesn't really make sense (to me).  Furthermore, I think you'd
need "Treat-1" rather than "Treat" as your fixed effect to do this.

  If you just want to test for differences between the two treatment
levels, what's wrong with the results of 'mcmc0' below?

lmer.seeded=lmer(Seeded~Treat+(1|Fire/Block)+(1|Year),data=cover)
mcmc0=pvals.fnc(lmer.seeded,nsim=10000)
mcmc=pvals.fnc(lmer.seeded,nsim=10000,withMCMC=TRUE)
xyplot(as.mcmc(mcmc$mcmc),layout=c(2,3))
3 days later
#
Daniel,

This has happened to me before, and Harald Baayen explained the issue:
It appears that recent versions of the languageR package are not
compatible with the newest version of R.

Please try to use R version 2.11 or 2.12 and see if this solves the problem.

If you can't go back to the older version of R, use R version 2.13
with languageR version 1.2 (which is on CRAN)

http://cran.r-project.org/web/packages/languageR/index.html

Let me know if that fixes things,

Cyrus
http://www.ualberta.ca/~cshaoul/