You are on page 1of 1

# Relative Importance of Variables

library(relaimpo)
metrics_2=calc.relimp(mod_2, type = "betasq")
metrics_1=calc.relimp(mod_2, type = "lmg")

# Plots
#https://cran.r-project.org/web/packages/interplot/vignettes/interplot-
vignette.html
library(sjstats)
effects::allEffects(mod_4)

library(sjPlot)
library(ggplot2)
plot_model(mod_2, type = "pred", terms = "TV",pretty=F)
plot_model(mod_3, type = "pred", terms = "TV",pretty=F)
plot_model(mod_4, type = "pred", terms = "TV",pretty=F)

You might also like