strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science

Home Page:https://strengejacke.github.io/sjPlot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tab_model function dv.labels not properly labelling DV labels.

nkraus2 opened this issue · comments

I am writing out a summary table of a multilevel brms model. When I attempt to change the labels for the dependent variables, I find that setting the dv.labels does not work. See below for the brms model

model9.1.1 <-bf(prior_mood_NA ~ negative_emotionality + exam + (1 | ID), family = gaussian())
model9.1.2 <-bf(D_NA ~ PE_1 + prior_mood_NA + exam+ (1 | ID), family = gaussian())
model9.1.3 <-bf(ND_NA ~ prior_mood_NA + PE_1 + exam +(1 | ID), family = gaussian())
model9.1.4 <- brm( model9.1.3 + model9.1.2 + model9.1.1 + set_rescor(FALSE),
data = DF, family = gaussian(),
chain = 2, cores = 2, iter = 1000,
file = "model9.1.4", file_refit = "on_change")

I set up the tab_model() like below:

tab_model(model9.1.4,
pred.labels = c("Intercept", "PE 1", "Neuroticism", "Prior Negative Mood", "Exam Number"),
dv.labels = c("Mean Dense NA", "Next Negative Mood", "Prior Negative Mood"),
show.se = T, title = "SUMMARY TABLE",
string.se = "Std.
Error", string.est = "Est." )

The output for the above tab_model() is below:
image

Is this due the models I am setting up, or is there a solution within tab_model() to change the dependent variable labels?

Thanks!