Questions tagged [modelsummary]
modelsummary is an R package including a powerful set of utilities to customize the information in regression models
modelsummary
169
questions
0
votes
1
answer
41
views
R: Assigning different coefficient estimates to different panels in regression table
I am running 2SLS model and want to build a panel that shows the estimates for different regressors for the first stage, the second stage and the reduced form.
The table below shows what I want (table ...
0
votes
0
answers
75
views
when model summary() show 'ValueError: Undefined shapes are not supported.'
I facing a problem when defining layers, the model summary for sequential model got error
Images
This problem only show when I run the code on jupyter notebook, when using google colab to run this ...
0
votes
0
answers
14
views
How to get KP F-stat in IV regression in R? [migrated]
I am running an IV regression with fixed effects and clustered standard errors similar to the one below and would like to compute the Kleibergen-Paap (rank) F-statistic for weak identification. Is ...
0
votes
0
answers
13
views
Issue with `row_spec()` from `kableExtra` in `modelsummary` [duplicate]
I am trying to create regression table using fixest and modelsummary, but when I run the modelsummary along with the row_spec() function from kableExtra, it shows the following error -
Error in if (...
0
votes
2
answers
45
views
Export latex table from summary of rddensity function in R
I am interested in exporting the summary of the rddensity function in latex in R. I've tried to use modelsummary without sucess, and capturing output also hasn't worked out. My objective is to export ...
1
vote
0
answers
39
views
Similar regression table with modelsummary as fixest with etable()
With fixest one can use etable() to produce regression tables of the form
library(fixest)
library(modelsummary)
data("trade")
lm1 <- feols(log(Euros) ~ log(dist_km), trade)
lm2 <- ...
0
votes
2
answers
31
views
Using modelsummary for list-columns of models
I am often fitting models in this manner:
mtcars %>%
nest(-cyl) %>%
mutate(model=map(data, function(x) lm(hp~mpg, data=x)),
model2=map(data, function(x) lm(hp~mpg+wt, data=x)))-&...
0
votes
1
answer
27
views
How to get estimate and standard error on same row in R modelsummary library?
I would like to use modelsummary to create a regression table in R. The default regression table produced by modelsummary contains the coefficient estimate and the standard errors on different rows, ...
0
votes
1
answer
39
views
correlation table with modelsummary
I am trying to generate a correlation table using the datasummary_correlation() function from the modelsummary package. I am using a custom function corstars to display significance levels with ...
0
votes
0
answers
12
views
summary statistics using datasummary
I am trying to create a summary statistics tables using datasummary() from modelsummary package, but when I run the code it does not generate any results. This is a minimal example -
datasummary(mpg + ...
0
votes
1
answer
20
views
How do I create a list for modelsummary() from models created using map()
I am often fitting models for more than one dependent variable in this way. It lets me get the coefficients quickly for plotting. But then I have a hard time passing these results to modelsummary() to ...
1
vote
1
answer
35
views
How to report an object of class htest using modelsummary in R
I'm trying to use modelsummary to report a test. A sample of what test I use is on the following lines:
library(stats)
library(modelsummary)
set.seed(10)
ts1 <- rnorm(200, mean = 10, sd = 3) %>...
2
votes
1
answer
101
views
(Zero Inflated) Negative Binomial Regression with Conley Standard Errors and Weights
My goal is to run a negative binomial regression with conley standard errors and weights. Further below I separately ask about a zero-inflated negative binomial model.
To my knowledge, a negative ...
0
votes
1
answer
40
views
How to modify column labels with modelsummary
How can I modify the labelling scheme for the column labels (here: lhs: mpg and lhs: disp) with modelsummary?
According to the documentation, setting a global option like this options(...
1
vote
0
answers
45
views
How do I insert linebreaks for coefficient names in modelsummary()
Is there a way to force line breaks in coefficient labels in latex output from modelsummary?
Inserting a <br> and fmt_markdown will work for gt output, but not when the document is a pdf.
---
...