Questions tagged [modelsummary]

modelsummary is an R package including a powerful set of utilities to customize the information in regression models

modelsummary includes a powerful set of utilities to customize the information displayed in your model summary tables. You can easily rename, reorder, subset or omit parameter estimates; choose the set of goodness-of-fit statistics to display; display various “robust” standard errors or confidence intervals; add titles, footnotes, or source notes; insert stars or custom characters to indicate levels of statistical significance; or add rows with supplemental information about your models.

130 questions
4
votes
2 answers

Extract first stage results from feols() IV regression for modelsummary()

I'd like to report the first and the second stage results from feols() IV regression using modelsummary(). I couldn't find a way (except running the first stage as a separate model). I can display first and second stage results using etable() like…
Umut
  • 87
  • 6
4
votes
1 answer

How to extract the goodness-of-fit statistics from lmer() model for msummary from modelsummary package

I am using lmerTest::lmer() to perform linear regression with repeated measures data. My model contains a fixed effect (factor with 5 levels) and a random effect (subject): library(lmerTest) model_lm <- lmer(likertscore ~ task.f + (1 | subject),…
mavericks
  • 1,005
  • 17
  • 42
3
votes
1 answer

How to export kableExtra output in R to Word?

I created a summary table of my models in R with the package modelsummary and then customized the look with the kableExtra package. tab<-modelsummary(welfarestate,stars=c("*"=.1,"**"=.05,"***"=.01),statistic="std.error",title="WVS…
jsmill
  • 31
  • 2
3
votes
2 answers

Compute and display mean of dependent variable in modelsummary output tables in R

I am using the feols command from the fixest package in R to estimate fixed effect regressions, in most cases with weights. In order to output my results, I am mainly using the modelsummary command from the modelsummary package. I have figured out…
artur
  • 33
  • 5
3
votes
1 answer

How to remove one row of column labels in a gt table?

#Preparing the data and loading packages library(modelsummary);library(tidyverse);library(gt) as_tibble(mtcars) df <- mtcars %>% mutate(cyl_ = factor(cyl)) %>% dplyr::select(cyl_, mpg, vs, am, hp, wt) #Gets table of descriptive statistics about…
tci
  • 69
  • 7
3
votes
1 answer

Adding a LaTeX reference label to a table in modelsummary

I'm trying to produce tables in R (not RMarkdown, as this question helps answer) with modelsummary and I'm having a tough time adding reference labels (e.g., tab:hello). As Vincent points out in this answer, extra arguments to modelsummary should be…
Julian
  • 451
  • 5
  • 14
3
votes
2 answers

Generate table with side-by-side node models of `partykit:mob()` object

Let's say I fit a model using partykit:mob(). Afterward, I would like to generate a side-by-side table with all the nodes (including the model fitted using the whole sample). Here I attempted to do it using stargazer(), but other ways are more than…
3
votes
2 answers

How to extract LME4 output to latex tables?

I usually use modelsummary() or stargazer() for extracting tables to latex in R. However, they seem to not work with lme4. Does someone know a way to extract this reproducible example to a nice latex table? Here is my model: df <- tibble( y =…
Jack
  • 813
  • 4
  • 17
2
votes
1 answer

Export multiple tables in separate pages in modelsummary

The modelsummary package allows to export summary tables of models do word documents. However, I want to use export multiple tables on different pages. However, when I repeat modelsummary with my new models and choose the same output, the tables…
flxflks
  • 498
  • 2
  • 13
2
votes
2 answers

Why does coef_map of the modelsummary do not display my interaction terms when i specify a name for it?

I have these three Models model <- lmer(dgentav14 ~ p95*Financial_Open_Logged + IIP_GDP + gent + loggdpt + growtht + unempt + factor(topic) + factor(wave) + (1 | country), data = data_master1, REML = FALSE) model2 <- lmer(dgentav14 ~…
2
votes
1 answer

How can I round metrics in modelsummary package?

I enjoy the option metrics="all" in modelsummary package that gives excellent summary statistics of instrument variable models (e.g. ivreg), namely the Wu-Hausman test. data(mtcars) library(ivreg) iv_model <- ivreg(mpg ~ qsec + cyl + drat | disp |…
Marco
  • 2,368
  • 6
  • 22
  • 48
2
votes
1 answer

Is there a way to add an R-squared value of GLM in modelsummary table

I am comparing multiple models with modelsummary table. The models include generalized linear models, simple linear models, and generalized additive models. However, it would be very important for me to compare the R squared values and in the case…
eve1234
  • 21
  • 2
2
votes
2 answers

Change plot colour by positive / negative value for modelplot()

I'm trying to change the color of coefficients in a forest plot using modelplot(), so the that positive values are one color, and negative values another, as with the separate plotmodel() function, library(modelsummary) modelplot( model1, …
2
votes
1 answer

R modelsummary latex output - remove the \num{} tag

For a series of models, I would like to create a latex table/output using the R package modelsummary. The problem is that the package wraps the output values in the \num tag which seems to create problems with our latex table format. Is there anyway…
dmort
  • 181
  • 1
  • 11
2
votes
2 answers

Extracting information from R objects and importing it to a modelsummary table

I am trying to make a statistical model summary table using the modelsummary package. I ran 6 regressions. I conducted joint hypothesis tests for 2 of them, which include certain variables (specificaly, educ and exper) as explanatory variables. I…
Yoshi
  • 23
  • 5
1
2 3
8 9