I am using lmer from the lme4 package and lmerTest. My regression looks as follows:
r1 <- lmer(a ~ b + c + as.factor(d) + (1 | e), data = df)
I would like to use stargazer and used this code:
stargazer(r1, type = "text")
However, it doesn't work. R returns this error:
Error in objects[[i]]$zelig.call : $ operator not defined for this S4 class
Actually I don't know what the problem is, I already checked if there are packages which are incompatible with each other but that does not seem to be the case. Does anyone have an idea what the problem might be or if there is an alternative to stargazer when using lmer?