[R-sig-ME] Is there a way of getting “marginal effects” from a `glmer` object

Hans Ekbrand hans.ekbrand at gmail.com
Sat Jun 14 00:12:37 CEST 2014


On Fri, Jun 13, 2014 at 02:24:58PM +0530, Prof. Karthik D. wrote:
> I am estimating random effects logit model using glmer and I would like to
> report Marginal Effects for the independent variables. For glm models,
> package mfx helps compute marginal effects. Is there any package or
> function for glmer objects?

I recommend the "effects" package.

Package: effects
Version: 3.0-0
Date:    2014/03/20
Title:   Effect Displays for Linear, Generalized Linear,
         Multinomial-Logit, Proportional-Odds Logit Models and
         Mixed-Effects Models

Try:

install.packages("effects")
library(effects)
plot(Effect(c("gre"), cfelr, grid = TRUE))

Or, for interactions, eg:

plot(Effect(c("gre", "rank"), cfelr, grid = TRUE))



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