Skip to main content
0 votes
0 answers
9 views

How to explain discrepancy between a Cox PH model output and sjPlot:tab_model() output?

In a model we are developping for a project, we use a Cox Proportional Hazard model. We compared the table from the summary and the tab_model() of the model. What we have observed is the ...
Buczinski's user avatar
0 votes
1 answer
42 views

R: sjplot: plot_model type "pred" adding a title and making error lines solid

I want the graph using plot_model with a unique title "My title" and with solid (not dashed) lines on the error bar. However, both don't work - any help highly appreciated. My current MWE: ...
canIchangethis's user avatar
0 votes
1 answer
55 views

plotting is giving odds ratio different than logistic regression in r

I am trying to plot odds ratio for MAE ~ Plt. The Plt variable was associated with high MAE odds ratio. Here is my data: ##dput(df) df <- structure(list(MAE = c(0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, ...
Mohamed Rahouma's user avatar
0 votes
0 answers
38 views

Can tab_model collapse all models in one column?

I am using the tab_model function from the sjPlot package in R to do a table with 18 univariate models, all with the same response variable, but with one different variable each, as an example, this ...
Mia Colomar Riutort's user avatar
0 votes
0 answers
27 views

Customizing {modelsummary} output to match {sjPlot::tab_model} for glmer

I try to customize the output of modelsummary::modelsummary() to match the output of sjPlot::tab_model()- simply, to achieve similar looking tables when the output is PDF compared to HTML. sjPlot::...
tobin_lab's user avatar
  • 305
1 vote
1 answer
43 views

How to tweak geom_text element in sjPlot

I use this code: library(sjPlot) mtcars |> plot_frq(cyl) and I get I would like to remove the parentheses and round the percentage numbers to the nearest whole number. So that I get 34% ...
TarJae's user avatar
  • 79.8k
0 votes
0 answers
14 views

Interaction plots: How to set prediction ranges according to the observed-data range of each category in sjPlot?

Using sjPlot, I would like to have the prediction lines (and CIs) limited to the range of x1 values with observed data for that category (x2's factor levels, or numerical chosen levels). This is the ...
Diego NabaJo's user avatar
0 votes
0 answers
24 views

When should the "terms" argument be specified in sjPlot::plot_model function?

Basically, the title. I am refering to the predictors vs response plots, not the model coefficients plot. For example, this code: sjPlot::plot_model(model, type = "eff") Lately, I always ...
Diego NabaJo's user avatar
0 votes
0 answers
22 views

How to modify spaces in the tab_model function

I have put together this table using results from a logistic regression into a tab_model (sjPlot) function. When I click to expand the table the predictors line has all the terms run together (Odds ...
manateemanatee77's user avatar
0 votes
2 answers
44 views

Error in grouping likert plot using plot_liker command under sjPlot in R

I am trying to create Grouped Likert Plot using plot_liker command under sjPlot in R. Tried to execute the following command: library(sjPlot) library(ggplot2) library(readxl) mydf1<- read_excel(&...
Ranadip Chandra's user avatar
0 votes
1 answer
91 views

How to adjust x axis in coefficient plot with sjPlot's plot_model when x value range is smaller than -1,1?

I'm plotting multiple regression coefficients with plot_model and the x axis is automatically set to -1,1 even though the possible range of my values is smaller, which makes the estimates hard to see ...
kommoder_Waran's user avatar
1 vote
1 answer
79 views

Plot of predicted probabilities of interaction term with sjPlot - CI level does not change

I am trying to create a plot of predicted probabilities from a generalised multilevel linear model (random intercept) using sjPlot package. I want to plot the effect of an interaction term. I am ...
kris's user avatar
  • 165
0 votes
0 answers
22 views

Changing variable names in a plot - SJplot

I am trying to change the variable names in a plot to make them more intuitive. For example, in the replicable example below I am tryimng to change "cyl" to the "Number of cylinders&...
James Prentice's user avatar
1 vote
0 answers
98 views

Add Random Effects to Stargazer table

I have a Mixed-effects model and I want to use stargazer to create a regression table including the Random Effects part. I can get something similar using either sjPlot::tab_model() or texreg::texreg()...
Ttytamaki's user avatar
  • 115
0 votes
1 answer
70 views

Using a color scheme and legend labels in plot_model

I would like to plot the results of a multilevel model in R, specifically to illustrate an interaction effect, using plot_model from sjPlot. I would like to use a specific color scheme and I would ...
Becky B's user avatar

15 30 50 per page
1
2 3 4 5
21