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

Create summary for multiple iterations extracted from loop via single model

I have created a function which is running multiple iteration of lm regression using different columns as the dependent variable over a loop. I am extracting the summary of each iteration and the relavance graph, but I am not able to create a single…
0
votes
1 answer

Augmenting/Mutating of Model objects in R

So I am running multiple cochrane orcutt regressions, which is no problem. I then display the output of these regressions using modelsummary(). Still no problems up to this point. However, when I then try to compare the models using modelplot(),…
0
votes
1 answer

datasummary_df: allow column titles to wrap and column significant digits to vary

Thanks to the creator of the modelsummary package from a newbie. I'm calling datasummary_df to print descriptive statistics in an RMarkdown table, and would like no significant digits in some columns and two significant digits in others.…
0
votes
1 answer

Removing certain parts of modelsummary in R at specific statistics

I am using gamm4:gamm4 to model longitudinal change. I am trying to use the modelsummary::modelsummary function to create an output table of the following results: I would like to add t-values and std.error to the output of the fixed effects, and…
CanyonView
  • 401
  • 3
  • 15
0
votes
1 answer

How to transpose a regression output with modelsummary package?

I JUST found out about this amazing R package, modelsummary. It doesn't seem like it offers an ability to transpose regression outputs. I know that you cannot do a tranposition within kable-extra, which is my go-to for ordinary table outputs in R.…
Daycent
  • 455
  • 4
  • 15
0
votes
2 answers

error in torchinfo: input is 1D but it's not iterable

I'm trying torchinfo in a model and it needs two input, one is 3D and the other is 1D input. So I tried: print(summary(model, input_size=([(10,1684,40),(10)]))) But I recieved: TypeError: rand() argument after * must be an iterable, not int and I…
0
votes
1 answer

Modelsummary: DV names and Model Names at the same time in differen rows?

I was wondering how to use modelsummary to combine model names and DV names as in outreg2 in Stata? Here is the reprex: url <- 'https://vincentarelbundock.github.io/Rdatasets/csv/HistData/Guerry.csv' dat <- read.csv(url) models <- list( "OLS…
0
votes
1 answer

Modelsummary: Different formats for estimates and statistics

First of all thanks to the creator of the modelsummary package -- very useful! I have a question about different fmt for statistic and estimates? Here is a reprex: url <-…
0
votes
1 answer

Calculate marginal effects after broom & present using modelsummary

I am trying to 1. calculate marginal effects after running a nested regression in broom and then convert the output into a format that is readable by modelsummary in order to knit into Word using R…
Stata_user
  • 562
  • 3
  • 14
0
votes
1 answer

modelsummary unexpected latex output

With the following code I produce the laTex table in the image below. As you might notice there are a few things wrong with the output. The title is missing P-values in the wrong place The footnote is misaligned Any help is greatly…
Tomas R
  • 440
  • 2
  • 10
0
votes
1 answer

Weird "model.summary"'s format

I am working on a project and when I use model.summary() to check for my model. It appears quite weird... Actually It's missing the underlines that separate layers. Has anyone ever got this? I wonder if there is any reason for this and is it gonna…
hehehih
  • 3
  • 1
0
votes
1 answer

Forest plot facet grid comparing regression model coefficients from multiple models

I am currently working with 30 datasets with the same column names, but different numeric data. I need to apply a linear mixed model and a generalised linear model to every instance of the dataset and plot the resulting fixed effect coefficients on…
Giulio Centorame
  • 678
  • 4
  • 19
0
votes
1 answer

datasummary: Combine factor and numeric variables in a single table

I am trying to create a table with factor and numeric variables using modelsummary. The way I am doing this is by converting factor variables to numeric so that only 1 line appears for each factor variable and all variables appear in the same…
0
votes
1 answer

factor and numeric variables in a table using datasummary - R Markdown

I want to export a PDF file via R Markdown of the following table with numeric and factor variables using datasummary as per the below: --- title: "R Notebook" output: html_document: df_print: paged html_notebook: default pdf_document:…
0
votes
1 answer

how to include 'column_spec' in the output of datasummary?

I am running the following code in R: library(modelsummary) library(kableExtra) tmp <- mtcars[, c("mpg", "hp")] # create a list with individual variables # remove missing and rescale tmp_list <- lapply(tmp, na.omit) tmp_list <- lapply(tmp_list,…
1 2 3
8
9