strengejacke / sjPlot

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

tab_model is not working with gam object #871

Open gla14g opened 1 year ago

gla14g commented 1 year ago

I would like to use tab_model for a gam model object but the following error appears: _Error in .extract_parameters_generic(model, ci = ci, ci_method = cimethod, : argument formel "component" correspondant à plusieurs arguments fournis

Yet, The output of the model with summary() is the following:

_Family: gaussian Link function: identity

Formula: Q4.1 ~ scale(Urban_commune) * scale(Age) + GenderReco

Parametric coefficients: Estimate Std. Error t value Pr(>|t|)
(Intercept) 5.27356 0.06959 75.783 < 2e-16 scale(Urban_commune) -0.32125 0.06095 -5.271 1.92e-07 scale(Age) 0.22448 0.05793 3.875 0.000119 GenderRecoMale -0.03409 0.12344 -0.276 0.782519
GenderRecoUnsp. -0.31054 0.45580 -0.681 0.495951
scale(Urban_commune):scale(Age) 0.19943 0.05814 3.430 0.000647

Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1

R-sq.(adj) = 0.0611 Deviance explained = 6.92% GCV = 1.8387 Scale est. = 1.8199 n = 586_

Any idea of what is the problem?

strengejacke commented 1 year ago

Do you have a reproducible example?

gla14g commented 1 year ago

a=c(1,5,9,8,12) b=c(1,6,8,2,8,8) m<-gam(a~b) tab_model(m)