strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science

Home Page:https://strengejacke.github.io/sjPlot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with plot_model -- var/covar matrix

rmcphedr1984 opened this issue · comments

Hi there,

I am trying to plot a glmer moderation model, specified as:

Moderation_model_80B <- glmer(value ~ as.factor(norm) + ATSCI_TOT_Z +  as.factor(norm)*ATSCI_TOT_Z + (1|iMotionsRespondent), family = "binomial", data = data3_80_B)
summary(Moderation_model_80B) 

Unfortunately when i try to plot this using plot_model I get an error. Here is the code:


Moderation_plot <- plot_model(Moderation_model_80B, type = "pred", terms = c("ATSCI_TOT_Z [all]", "norm"),
                          axis.title = c("Total (standardised) score on the ASCI","Predicted odds of experiencing negative emotion state"), 
                          title = "", colors = cbbPalette) + theme(legend.position="top") +
  theme(axis.text.x = element_text(size=10,  color = "black"),
        axis.text.y = element_text(size=10, color = "black")) +
  theme(axis.title = element_text(size=12, face="bold")) + 
  theme(axis.title.x = element_text(vjust=-0.5)) + 
  theme(legend.title=element_blank()) +
  scale_x_continuous("Total (standardised) score on the ASCI")

and the error returned is:

Could not compute variance-covariance matrix of predictions. No confidence intervals are returned.
Error in find_terms.default(model) :
promise already under evaluation: recursive default argument reference or earlier problems?

Please help! Thanks!

btw. Love the package @strengejacke