Skip to content

Plotting post-fitting inference effects in a glmmTMB model

1 message · John Fox

#
Dear Ben, Daniel, and Julian,

A reproducible example would have been nice, but it's easy to create one:

-------- snip ---------
. . .
Loading required package: carData
lattice theme set by effectsTheme()
See ?effectsTheme for details.
Error in UseMethod("droplevels") : 
  no applicable method for 'droplevels' applied to an object of class "character"
And as Ben suggests, the problem isn't unique to glmmTMB models.

The temporary fix, as in the example above, is to change the character predictor to a factor. That shouldn't be necessary: Until the current version, Effect() didn't accommodate character predictors. Now that it does, plot.eff() should work with them too and it doesn't. I'll investigate the bug and fix it.

Best,
 John


  -------------------------------------------------
  John Fox, Professor Emeritus
  McMaster University
  Hamilton, Ontario, Canada
  Web: http::/socserv.mcmaster.ca/jfox