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
1
vote
1 answer

How can I use Newey-West Standard Errors in modelplot(), in R?

apologies if I write anything wrong - this is my first post. I am doing some time series regressions on the different determinants of house prices for different countries, and would like to use modelplot() to showcase the different coefficients for…
1
vote
1 answer

Display statistics for the whole sample as well as subgroups with modelsummary or similar packages

I am trying to create a table with descriptive statistics for the whole sample as well as subgroups. My goal is to use the wonderful modelsummary R package to return one table with mean, sd, min, median, max, and graphs for the variables calculated…
Michael Matta
  • 394
  • 2
  • 16
1
vote
2 answers

Removing model names in modelsummary

I wonder is it possible to remove model names entirely (and delete the row in the table). I tried setting them to NULL but that does not seem to…
Vitalijs
  • 938
  • 7
  • 18
1
vote
1 answer

change column labels in gt table

I would like to quickly change the column labels in a gt table of several models. Is there an easier way than providing a named vector? It would be nice to just provide a vector of names. data('mtcars') str(mtcars) mod1<-lm(mpg~wt,…
spindoctor
  • 1,719
  • 1
  • 18
  • 42
1
vote
2 answers

how to split table into 2 pages in R markdown using datasummary?

I am trying to create a table using datasummary via R Markdown. My table is, however, very long with many variables. Please see example code below: --- title: "R Notebook" output: pdf_document: default html_notebook: default html_document: …
1
vote
1 answer

Print tables with 3 regression output models from rdrobust

I have run 3 regressions with rdrobust, and would like to print some of the values (not all of them in a table, so that each model has a column and the results can be compared side by side. I tried with stargazer but with no success, same thing goes…
dilly
  • 63
  • 1
  • 7
1
vote
1 answer

Adding p-values to a polr model (for modelsummary)

I know that polr does not give p-values because they are not very reliable. Nevertheless, I would like to add them to my modelsummary (Vignette) output. I know to get the values as follows: library(MASS) polr_res <- polr(as.ordered(rep77) ~ foreign…
Tom
  • 2,173
  • 1
  • 17
  • 44
1
vote
1 answer

Long note in modelsummary

I was wondering, whether it is possible to align text on both sides in notes using modelsummary. It would be great if the note would look similar to notes in this paper…
Vitalijs
  • 938
  • 7
  • 18
1
vote
1 answer

Feeding probitmfx output in a list to Stargazer

Similarly to here, I am running a series of regressions on subgroups (all combinations of year and group) using tidyr. year <- rep(2014:2015, length.out = 10000) group <- sample(c(0,1,2,3,4,5,6), replace=TRUE, size=10000) value <- sample(10000,…
Stata_user
  • 562
  • 3
  • 14
1
vote
1 answer

Generate multiple column names for multiple models using `stargazer()`

I am trying to get multiple column labels, but I have problems parsing it from stargazer(). I am trying to display different models estimated over different sub-samples and describe the partitions in the column names. However, it is not displaying…
1
vote
1 answer

Easiest way to adjust the p-values for multiple comparisons for model(s) to be shown with msummary from modelsummary package

Having used lmerTest::lmer() to perform linear regression with repeated measures data I would like to adjust for multiple comparisons. I ran several models and used Bonferroni-Holm to adjust each of them, see my approach below. Eventually, I would…
mavericks
  • 1,005
  • 17
  • 42
1
vote
1 answer

How to add a text line to your regression table above one coefficient using the modelsummary function?

I am new to R and i am formatting my regression tables for the first time. I would like to add a line above "Working class" in the table below. This line should show "Reference category: Upper-class". Could someone please guide me a bit and maybe…
Jack
  • 813
  • 4
  • 17
1
vote
2 answers

modelsummary/kableExtra regression table with models of the same name

I use modelsummary() with kableExtra() to generate a regression table in an Rmd file (final output format: LaTex and HTML). I run regressions for several variable combinations and model specifications. The regressions are grouped in the table by…
mavericks
  • 1,005
  • 17
  • 42
0
votes
1 answer

How to control rounding in datasummary_df in modelsummary in R?

I like to have some variables with and some without digits (different rounding). library(modelsummary) datasummary_df(mtcars) I like to have mpg with the two digits, whereas cyl should just be 4, 6, etc. How can I do this without converting cyl to…
Marco
  • 2,368
  • 6
  • 22
  • 48
0
votes
1 answer

Small p-values do not display in modelsummary output

I am comparing 4 regression outputs and am using the modelsummary package to tabulate and present the data. Some of my p.values are extremely small (e.g. 2e-28) - and therefore essentially zero - but the output table displays "p =" rather than "p =…
strangecharm
  • 186
  • 11
1 2 3
8 9