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
0 answers

Reporting mgcv::gam summary with modelsummary

I'm attempting to report the model summary from mgcv::gam() using the modelsummary package. The flextable package provides a summary that is consistent with the summary output in R and what is often presented in publications. It separates out…
mpschramm
  • 520
  • 6
  • 12
1
vote
1 answer

plm::pdata.frame loses variable label attributes created by labelled::var_label?

I have a panel data to which I have applied plm::pdata.frame to be able to use the lag operator. However, once I have converted by dataframe to pdata.frame, the variable labels that I created using labelled::var_label do not show up in…
Anup
  • 239
  • 2
  • 11
1
vote
2 answers

Control output size of modelsummary or DT in bookdown

How can I control total size or width of elements like datasummary_skim from modelsummary package or datatable from DT package in bookdown? Those packages are great. But output is too large. I can zoom in and out via browser view, which looks…
Marco
  • 2,368
  • 6
  • 22
  • 48
1
vote
2 answers

Datasummary - Plot histograms side-by-side

I would like to use the functionality of modelsummary::datasummary_skim such that two tables are aligned side-by-side including the histograms and only the mean of the variables,…
Julian
  • 6,586
  • 2
  • 9
  • 33
1
vote
1 answer

Meaning of output shapes of ResNet9 model layers

I have a ResNet9 model, implemented in Pytorch which I am using for multi-class image classification. My total number of classes is 6. Using the following code, from torchsummary library, I am able to show the summary of the model, seen in the…
1
vote
2 answers

Display coefficients and standardized coefficients in modelsummary

I am trying to display both unstandardized and standardized coefficients in a table using modelsummary (incredibly useful package, by the way) in a wide format. Calculating the standardized coefficients works fine and they are displayed in the…
statleo
  • 81
  • 1
  • 7
1
vote
1 answer

How can I change coef to exp(coef) in modelsummary table?

I am trying to create a summary table for my Cox model. However, when I use modelsummary function, it gives me a table that shows coef. But I want to display exp(coef) on my summary table. How can I change coef to exp(coef)? I use this script to…
hobsbawm
  • 21
  • 5
1
vote
1 answer

Clustered standard errors, stars, and summary statistics in modelsummary for multinom models

I want to create a regression table with modelsummary (amazing package!!!) for multinomial logistic models run with nnet::multinom that includes clustered standard errors, as well as corresponding "significance" stars and summary…
1
vote
1 answer

Hold position of modelsummary table when exporting bookdown to pdf

I am writing a bookdown document where I want to hold the positions of figures and tables. This works properly most of the time, except when using modelsummary. I tried to create a working example. My document looks like the following (except with…
Anton
  • 254
  • 1
  • 9
1
vote
1 answer

R2 for several fixed effects models using fixest::feols and modelsummary

I have a dataset structure(list(NAME_1.y = c("Alibori", "Atakora", "Atlantique", "Borgou", "Collines", "Donga", "Kouffo", "Littoral", "Mono", "Oueme", "Plateau", "Zou", "Central", "Chobe", "Francistown", "Gaborone", "Ghanzi", "Jwaneng",…
Anton
  • 254
  • 1
  • 9
1
vote
1 answer

Getting marginal effects from a logistic regression with interactions using margins

I'm running three logistic models with all categorical variables, some of them binary but most of them with 3 or more factors as values, the first would be the base model, the second have 2 interaction terms and the third have a three-way…
1
vote
1 answer

How do I get standardized beta coefficients using modelsummary in R? And how to omit more than one variable using modelsummary?

I am using modelsummary to create a table. I would like to the estimate (regression coefficients) to be standardized. I used lm.beta() but the estimate = is giving me the non-standardized coefficient. Also, I would like to use coef.omitt to take out…
hrl
  • 11
  • 1
1
vote
1 answer

How to have both lm and fixest model with different vcov standard errors in modelsummary package?

I'd like to create an LM with HC3 corrected standard errors and a fixest model with cluster robust standard errors in the same table. see my MRE below: df <- mtcars models <- list() models[[1]] <- lm(cyl~disp, data = df) models[[2]] <-…
Daycent
  • 455
  • 4
  • 15
1
vote
2 answers

Show count of unique values in datasummary and combine two different tables of descriptive statistics using data

I really like the modelsummary package and i'm trying to produce a single table that mixes descriptive statistics of different types. The first part is easy: I can make basic descriptives of var2 and var3 before. I can't get the second part right,…
spindoctor
  • 1,719
  • 1
  • 18
  • 42
1
vote
1 answer

Modelsummary: Different formats for estimates and extra rows from add_rows

This question is similar in spirit to Modelsummary: Different formats for estimates and statistics, but concerns the formatting for "additional rows" created with the add_rows function of the (excellent) modelsummary package. As far as I can tell,…
Julian
  • 451
  • 5
  • 14
1 2
3
8 9