Is there a way of getting “marginal effects” from a `glmer` object
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))