Closed pbreheny closed 9 years ago
The issue is that when you specify scale="response"
, visreg needs to know what the link function is in order to apply the inverse link and put things back on the response scale. To do that, it needs to be able to run
family(fit)
This works for GLMs fit usingglm()
,glmer()
,gam()
, etc. If it does not work for theglmmadmb
package, you should e-mail the authors of that package and request them to add it.
The simple fix for this is just to specify the inverse transformation yourself. I.e., if you're using a log link, just specify
trans=exp
to plot things on the response scale. But visreg
can't automatically determine this unless the glmmadmd
package cooperates.
Dr Nicholas E. Newton-Fisher (University of Kent) writes: