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

{modelsummary} showing and customizing FEs

In displaying fixed effects regressions from fixest with modelsummary, I want to remove the default stats of AIC and BIC, and keep only the FE variable and the sample size, in that order. I don't know how to refer to the "FE:[Variable] X" stat in…
shiro
  • 578
  • 3
  • 9
0
votes
0 answers

How do I get result of Estimate a ρ -Transformed Model?

I am facing some problems with some issues in chapter 16.6 Estimate a ρ-Transformed Model (https://bookdown.org/carillitony/bailey/chp15.html) I put the following commands in software R, but failed to generate the outcome. Coomand to Estimate a ρ…
0
votes
1 answer

saving modelsummary() output to Excel

I have a list of models. The modelsummary documentation mentions being able to save to Excel format (https://cran.r-project.org/web/packages/modelsummary/modelsummary.pdf). I can't get it to work. If Excel isn't possible, is there another…
tci
  • 69
  • 7
0
votes
1 answer

How to freeze the first column with `modelsummary`?

Suppose I have an .rmd document that I want to knit into an html with a large number of models: --- title: "Example Document" subtitle: "" output: rmarkdown::html_document: smart: true theme: spacelab number_sections: no toc: true …
John-Henry
  • 1,556
  • 8
  • 20
0
votes
0 answers

`modelsummary::msummary()` does not produce R2 after running `fixest::feols`

I found the same issue here: R2 for several fixed effects models using fixest::feols and modelsummary I followed the suggestion provided and it solved my problem on Windows. But this did not solve the problem on my Mac. In fact, after running the…
Anup
  • 239
  • 2
  • 11
0
votes
0 answers

Applying modelsummary() to regression tables with adjusted p-values

I run a linear regression for which I adjust the p-values. When I want to display it using modelsummary() the model displayed does not show me the adjusted p-values. Here is a reproducible example: library(modelsummary) library(estimatr) d<-…
ju_pi_car
  • 1
  • 1
0
votes
1 answer

Narrower multirow column labels in modelsummary

I'm using the excellent modelsummary package to summarize my data and regression models. One problem I've run into is having column labels -- variables for datasummary_correlation and model names for regression output -- that are too wide for the…
bshor
  • 4,859
  • 8
  • 24
  • 33
0
votes
1 answer

modelsummary omits negative sign in front of coefficients

I've searched the modelsummary website and the internet. I also tried library(conflicted) to see if there is a package conflict. Modelsummary seems to omit negative signs in front of coefficients. Instead the coefficients that should be negative are…
tci
  • 69
  • 7
0
votes
1 answer

Can I use modelsummary with vcov="robust" for cox model in R?

I have a few cox models created by coxph, and I want to summarise them with modelsummary. However, when I write robust=T in coxph script, and run modelsummary like below, I get an error message which says "Error in get_vcov.default(model, vcov =…
hobsbawm
  • 21
  • 5
0
votes
1 answer

R datasummary: Show N and percent in one column

I am currently trying to display the count of factor levels (e.g., gender) and their relative frequency per group (e.g., treatment group) using datasummary. In addition, I would like to combine this with the display of quantitative variables (e.g.,…
statleo
  • 81
  • 1
  • 7
0
votes
2 answers

Add degrees of freedom (df or df.error) to the output of model tables with modelsummary

I'm fitting a list of models and generating tables of the results with modelsummary. Here's a reproducible example: library(palmerpenguins) library(modelsummary) m_test <- list( lm(bill_length_mm ~ flipper_length_mm, data = penguins), …
AFH
  • 665
  • 1
  • 9
  • 28
0
votes
2 answers

Getting weird output when using the modelsummary package in R to create an average partial effects table

I am trying to present an average partial effects table of multiple binary-response models. Back in December last year, I had no issue calling modelsummary in a list of objects of the class "margins" "data.frame" to produce a table like the one…
0
votes
1 answer

Adding coefficient group titles to modelsummary output

I'm trying to group coefficients together in a modelsummary output table and add row titles for these groups : library(modelsummary) ols1 <- lm(mpg ~ cyl + disp + hp, data = mtcars, na.action = na.omit ) modelsummary(ols1, title = "Table…
0
votes
1 answer

Tensorboard: How to view pytorch model summary?

I have the following network. import torch import torch.nn as nn from torch.utils.tensorboard import SummaryWriter class Net(nn.Module): def __init__(self,input_shape, num_classes): super(Net, self).__init__() self.conv =…
bikram
  • 7,127
  • 2
  • 51
  • 63
0
votes
1 answer

How to use modelsummary with rddpackage?

I am trying to input my rdds model from rdd package into model summary and I can't. This is my code: rdd_model_names <- paste0("model", 1:8) rdd_model <- list(ll1_covs, ll1_no_covs, ll2_covs, ll2_no_covs, ll3_covs, ll3_no_covs, ll4_covs,…
1 2 3
8 9