[R-sig-ME] GLMM - R squared

Marcos Monasterolo mmonasterolo at agro.uba.ar
Wed Mar 22 22:44:34 CET 2017

Dear all. I am working with a GLMM in the lme4 package using 4 fixed
factors and 1 random factor (plot). An unexpected result comes up when I
calculate the model's conditional and marginal R-squared using the
r.squaredGLMM funtion in the MuMIn package. Both values are the same. Does
this mean the random term does not add any explanatory power to the model
(and could thus be dropped)? I provide a working code below. Thanks in
advance for your help.

id <- "0Bzd8I1jr8z_iRm1aRWhqdHJHcmc" # google file ID
comuni <- read.table(sprintf("https://docs.google.com/uc?id=%s&
export=download", id), head=T, sep="")
comuni1<-comuni[-c(3,6,7,8),] #these data points I don't need
MM1A <- glmer(riquplanta ~width+lot+exph200+db500+(1|plot), data = comuni1,
family=poisson, control=glmerControl(optimizer="bobyqa",
r.squaredGLMM(MM1A) #what's going on here?

Biól. Marcos Monasterolo
Becario doctoral - Cátedra de Botánica General, Facultad de Agronomía, UBA

	[[alternative HTML version deleted]]

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