sjPlot package to plot marginal effects from a regression by mlogit

Thx for sticking with me on this. I still seem to be getting some errors.

I did following:
. upgraded to R 4.0 (had 3.6 before)
. ensured R upgrade worked in my R studio. Check.
. re installed the 3 packages you named (mlogi, subplot, effects) plus another that was required (prediction)
. Ran my regression model with mlogit with no errors re NAs or otherwise

So everything worked as it did previously so far …

Then I did the following:

  • First, test a command from sjPlot package that integrates my mlogit results to make a simple html table of coefficients. This worked fine:

tab_model(ce.model.sim)

  • Second, test a command from sjPlot package that integrates my mlogit results to plot coefficients. This worked fine:

plot_model(ce.model.sim, vline.color = "red", sort.est = TRUE)

  • Third, test a command from sjPlot package that integrates my mlogit results to plot marginal effects of a regressor. Recieved an ERROR:

plot_model(ce.model.sim, type = "pred", terms = "SIZE")

Error in contrasts<-(*tmp*, value = contr.funs[1 + isOF[nn]]) :

contrasts can be applied only to factors with 2 or more levels

  • Fourth, test a command from sjPlot package that integrates my mlogit results to plot an interaction effect (based on a diff model with IEs). Recieved an ERROR:

plot_model(ce.model11, type = "int")*

*Error in tmp[["fit"]] : subscript out of bounds

Help?