strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science
https://strengejacke.github.io/sjPlot
606 stars 91 forks source link

gamlss tab_model #796

Open yuryzablotski opened 2 years ago

yuryzablotski commented 2 years ago

Hi Daniel,

ich liebe deine R-Packete! Danke vielmals für die fantastische Arbeit. Ich nutze die ständig (bin Akademiker)! Neulich habe ich die Funktion "tab_model" für "gamlss" model benutzt. Und nun, nach einigen Updates (gamlss.data war es glaube ich), geht tab_model nicht mehr mit gamlss Modellen (mit allen anderen Modellen geht es problemlos). Plot_model funktioniert damit nachwievor super! Wäre cool, wenn du dir es anschauen könntest. Herzliche Grüße! Yury

Hier ist die Fehlermeldung:

Error in .extract_parameters_generic(model, ci = ci, ci_method = ci_method, : formal argument "component" matched by multiple actual arguments.

  1. tab_model(m)
  2. purrr::map2(models, 1:length(models), function(model, i) { fam.info <- insight::model_info(model) if (insight::is_multivariate(model)) fam.info <- fam.info[[1]] ...
  3. .f(.x[[1L]], .y[[1L]], ...)
  4. tidy_model(model = model, ci.lvl = ci.lvl, tf = transform, type = "est", bpe = bpe, robust = list(vcov.fun = vcov.fun, vcov.type = vcov.type, vcov.args = vcov.args), facets = FALSE, show.zeroinf = show.zeroinf, p.val = p.val, bootstrap = bootstrap, iterations = iterations, ...
  5. parameters::model_parameters(model, ci = ci.lvl, component = component, bootstrap = bootstrap, iterations = iterations, df_method = df_method, p_adjust = p_adjust, effects = "fixed")
  6. model_parameters.gamlss(model, ci = ci.lvl, component = component, bootstrap = bootstrap, iterations = iterations, df_method = df_method, p_adjust = p_adjust, effects = "fixed")
yuryzablotski commented 2 years ago

Hi Daniel, ich habe den Parameter Packet auf 0.14.0 runtergestufft und dann ging es wieder :)

strengejacke commented 2 years ago

Hast du ein reproduzierbares Beispiel? Es kann auch sein, dass der Fehler mittlerweile behoben ist.

yuryzablotski commented 2 years ago

Hi Daniel,

Danke für deine Nachricht. Noch geht es bei mir aufm Rechner nicht. Hier ist das Beispiel und die Daten:

m <- gamlss(underconditioned ~ pb(tfv_mean), data=bla, family=BEZI, trace = F)

plot_model(m, type = "pred", terms = c("tfv_mean [0:8]"), title = "", legend.title = "disease duration [years]")

tab_model(m)

Liebe Grüße, Yury

On 26. Nov 2021, at 10:51, Daniel @.***> wrote:

Hast du ein reproduzierbares Beispiel? Es kann auch sein, dass der Fehler mittlerweile behoben ist.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/strengejacke/sjPlot/issues/796#issuecomment-979834499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASH44QSCBYRPO3BWKACMMWLUN5KCXANCNFSM5H6ONS5Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Skogur commented 2 years ago

Having same issue with all bam & gam family models.