leifeld / texreg

Conversion of R Regression Output to LaTeX or HTML Tables
110 stars 42 forks source link

custom.model.names not working in plotreg CRAN version #166

Closed Periloux closed 3 years ago

Periloux commented 3 years ago

I have attempted to change the model names using the custom.model.names call. It would work just fine in the past, but there must be something up with the latest update.

Thanks in advance.

leifeld commented 3 years ago

Hi Periloux! Can you provide a minimal self-contained example? That should allow me to figure out what is causing this behavior. Thanks a lot in advance! Philip

Periloux commented 3 years ago

I have noticed that the custom.model.names function works just fine for screenreg and texreg. However, I believe the problem comes into play when using the new facet layout for plotreg (compared to the simpler output in previous iterations).


summary(model1.b<-glm.nb(Total_adopt ~ Protests_first_year

  • ,data = state))

Call: glm.nb(formula = Total_adopt ~ Protests_first_year, data = state, init.theta = 4.62227604, link = log)

plotreg(model1.b,ci.inner = 0.9,#reorder.coef = c(2:7,1),

  • custom.model.name = c("policy diffusion")) Model: bars denote 0.5 (inner) resp. 0.95 (outer) confidence intervals (computed from standard errors).

Example.pdf

Periloux commented 3 years ago

Sorry, no... I meant to circle the "Model 1" in the facet heading before sending the reply. In previous iterations, the model name was free standing. In the latest update, it has been switched to the ggplot output.

czucca commented 3 years ago

@Periloux I see. There is something not working apparently. @leifeld If you allow me I can take care of this one.

czucca commented 3 years ago

@leifeld in -GitHub version 1.26.25 it was definitely working since I used it (I still have the plots). Hence, it must have broke down later.

leifeld commented 3 years ago

Thanks for providing the example. Sure, please go ahead and fix it! Thanks both!

Periloux commented 3 years ago

Thanks for the quick response