Is there a way of getting “marginal effects” from a `glmer` object
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? Thanks for your help. A reproducible example is given below mydata <- read.csv("http://www.ats.ucla.edu/stat/data/binary.csv") mydata$rank <- factor(mydata$rank) #creating ranks id <- rep(1:ceiling(nrow(mydata)/2), times=c(2)) #creating ID variable mydata <- cbind(mydata,data.frame(id,stringsAsFactors=FALSE)) set.seed(12345) mydata$ran <- runif(nrow(mydata