Hi
I have asked this question on StackOverflow and was asked by Ben Bolker to
post it here.

thanks for your help.

Karthik



*reproducing the SO
question http://stackoverflow.com/questions/24177197/is-there-a-way-of-getting-marginal-effects-from-a-glmer-object
<http://stackoverflow.com/questions/24177197/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),0,1) #creating a random variable

library(lme4)
cfelr <- glmer(admit ~ (1 | id) + rank + gpa + ran + gre, data=mydata
,family = binomial)
summary(cfelr)

	[[alternative HTML version deleted]]

