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

modelsummary display output from lm and brms concurrently with statistics

models <- list( "Linear" = lm(outcome ~ week * food data = df ), "Bayesian" = brm(outcome ~ s(week, k = 4, fx = TRUE, by = food) + food, data = df, family = "zero_one_inflated_beta") ) The following code works when I run it modelsummary(models, …
nerd
  • 473
  • 5
  • 15
0
votes
1 answer

Model summary and diagnostics for instrumental variables in R

I run instrumental variable regression (2SLS) with ivreg package. library(ivreg) as_tibble(mtcars) model_iv <- ivreg(formula = mpg ~ disp + drat | drat + carb, data = mtcars) As many other…
Marco
  • 2,368
  • 6
  • 22
  • 48
0
votes
0 answers

Trouble specifying datasummary() formula

I am getting weird outputs from my datasummary code. The idea is to create a table that shows the mean and SD for numeric variables and the number of observations for the full sample. I also want to display the shares for the two levels of a binary…
Axel J
  • 11
  • 1
0
votes
1 answer

Using fixest/etable to stack regression results from feols to create stacked panels

How can I vertically stack two different sets of regression outputs using the same set of dependent variables from fixest/feols using etable? For instance, suppose you estimate the same specification with different samples est1 <-…
Dawit G
  • 1
  • 1
0
votes
0 answers

Want to get linear equation from model output. Also want to get a single coefficient value for a column where multiple lables are there in the eqn

Note(I have used One hot encoding because my data have multiple labels for multiple columns)I have build one linear regression model using R.From the model output I am able to get the linear equation. As my data contains multiple labels for a…
0
votes
1 answer

create dataframe of r2, residuals, and coeff from linear models

Exactly like this question but how do you also get the R squared value for each model? link Sample data test <- data.frame(row=c(1:16), plot = c(1,1,1,1,1,2,2,2,3,3,3,3,3,3,3,3), logT =…
achtee
  • 11
  • 3
0
votes
1 answer

Assigning different coefficient names and goodness of fit statistics to different panels in modelsummary

I am trying to make a table using the modelsummary package in R (thank you to the creator) which has different goodness of fit statistics and names for different panels. I have been unable to achieve this so far. I am working in Quarto. Here is an…
Cola
  • 41
  • 3
0
votes
0 answers

modelsummary not reading columns from custom tidy and glance functions

Apologies for not having a full reproducible example here, but the models take a fairly long time to run and the model objects are fairly large. I have a chunk of code that to generate a table from three multilevel multinomial logit models run using…
0
votes
0 answers

How to read inception v3 model summary

`` Model summary: Model: "sequential_4" Layer (type) Output Shape Param # inception_v3 (Functional) (None, 2, 2, 2048) 21802784 global_average_pooling2d_4 (None, 2048) …
0
votes
1 answer

How to visualize a Tensorflow Model from its summary?

I am working with a custom Tensorflow model (not a Keras object) with a mostly unknown structure, and I printed the summary with this (taken from Is there an easy way to get something like Keras model.summary in Tensorflow?): def model_summary(): …
Alessandro
  • 103
  • 3
  • 11
0
votes
1 answer

Multiple fixest_multi models and shape parameter - modelsummary package

Again, thanks to Laurent for answering questions and supporting the modelsummarypackage. library(tidyverse) library(fixest) library(modelsummary) fit<-mtcars %>% feols(c(mpg,hp )~1) fit_1 <- mtcars %>% feols(c(mpg,hp,wt )~1) fit_2 <- mtcars %>%…
0
votes
1 answer

Several Model Estimates Table - Rearranging columns and rows (reprex included)

I'm working on creating a table of regression estimates from several models. Here is the data: structure(list(term = c("age_ceo_state__rf", "", "mktrf", "", NA, NA), intercept = c("0.390***", "(19.455)", "0.673***", "(23.409)", NA, NA), term_2 =…
0
votes
2 answers

Stacking dependent variables in one column in modelsummary->flextable workflow

I'm trying to use modelsummary for the following process: Estimate a multivariate regression ( j explanatory variables) per group (k groups) so that you have k estimates per each one of j variables. Average those k coefficients per each variable…
0
votes
1 answer

Changing labels in `modelsummary` output

I have a dataset that looks something like this. and I am using a modelsummary function to summarise some of its characteristics. set.seed(1) df<- data.frame(var1=runif(1000), var2=runif(1000), var3=runif(1000), …
Alex
  • 1,207
  • 9
  • 25
0
votes
0 answers

Creating Balance tables across different samples (modelsummary?)

I have a dataset from a survey that looks something like this. library(dplyr) library(modelsummary) library(Hmisc) set.seed(123) df<- data.frame(var1=runif(1000), var2=runif(1000), var3=runif(1000), …
Alex
  • 1,207
  • 9
  • 25
1 2 3
8 9