Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sjPlot and wblm objects #59

Open
smoser11 opened this issue Oct 29, 2023 · 0 comments
Open

sjPlot and wblm objects #59

smoser11 opened this issue Oct 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@smoser11
Copy link

I'm very sorry if I'm being dense, but I use to be able to use sjPlot to visualize fit models from wbm() back in 2019. But I cannot any more, instead getting the error:

Error in `purrr::map2()`:In index: 1.With name: mm.
Caused by error in `.mixed_model_parameters_generic()`:
! formal argument "ci_method" matched by multiple actual arguments
Backtrace:
  1. sjPlot::tab_model(mm, mm.Bexp, mm11.Bexp)
  2. purrr::map2(...)
  3. purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
  7. sjPlot (local) .f(.x[[i]], .y[[i]], ...)
  8. sjPlot:::tidy_model(...)
 10. parameters:::model_parameters.wbm(...)

Here is a MWE:

library(devtools) 
devtools::install_github("strengejacke/sjlabelled")
devtools::install_github("strengejacke/sjmisc")
devtools::install_github("strengejacke/sjstats")
devtools::install_github("strengejacke/ggeffects")
devtools::install_github("strengejacke/sjPlot")

library(panelr)
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
mm.Bexp <- wbm(lwage ~ exp +  wks + union + ms + occ | ed + blk + fem | blk*exp + (1 | id), data = wages) 

library(sjPlot)  # install.packages("sjPlot")
tab_model(mm.Bexp)
plot_model(mm.Bexp) 

But see the HTML file generated from Rmarkdown in 2019 (specifically section 3.2.4) in which sjPlot accepts a wbm object and plots it correctly. I tried using older versions of bothpanelr and sjPlot, but I cannot plot the within and between estimates from a fit wbm object. What am I missing?

Sorry and thanks.

image

@smoser11 smoser11 added the bug Something isn't working label Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant