Questions tagged [texreg]

Package for conversion of R regression output to LaTeX or HTML tables

Texreg converts coefficients, standard errors, significance stars, and goodness-of-fit statistics of statistical models into LaTeX tables or HTML tables/MS Word documents or to nicely formatted screen output for the R console for easy model comparison. A list of several models can be combined in a single table. The output is highly customizable. New model types can be easily implemented.

117 questions
1
vote
0 answers

How to display a large Regression output in RMarkdown (for PDF)

I am learning different statistical models and how to compute them using R. I want to display the summary of a large multinomial logistic regression model in RMarkdown so that I am able to generate a PDF file. However, only one page with the…
Jana
  • 19
  • 2
1
vote
1 answer

Using texreg() in R, how to add a line in generated LaTeX table

How can I add to a table a (text or empty) line in the middle of a LaTeX tabular environment generated with texreg() from a regression result. In the example below, I would like to add the empty line and a line with Subtitle for Coefficients Below.…
Grillo
  • 75
  • 6
1
vote
2 answers

Removing GOF in texreg with fixest library's feols regression object in R

I am using feols from the fixest library in R and then texreg / htmlreg to create tables. I would like to exclude several Goodness of Fit measures from my table (AIC, BIC, loglikelihood, etc), but texreg interprets my regression as an object form…
Márton
  • 35
  • 2
1
vote
1 answer

R-package compatible with the psce-package when one want to export regression tables

I am wondering if there is any R-package out there which is compatible with the psce-package when wanting to create html-files out of regression tables? I have used the pcse() function to implement panel corrected standard errors in the regression.…
1
vote
1 answer

Add superscripts and subscripts to plotreg variable labels

I'm wondering how to tweak plotreg()'s gl() function (it's function from the texreg package) to accommodate variables labels that contain super- or sub-scripts? I've experimented with expression() and paste() but to no avail. I provide a working…
Chris T.
  • 1,699
  • 7
  • 23
  • 45
1
vote
1 answer

Remove GOF rows from texreg regression table

How can you remove gof rows from a texreg table? In my specific case, I'd like to remove the R2, Adj. R2, and F statistic rows. I'm using texreg version 1.37.5 and R version 4.1.1. The default table rows I get from texreg in addition to headings…
Dr. Beeblebrox
  • 838
  • 2
  • 13
  • 30
1
vote
0 answers

Long and short captions using texreg in R Markdown

I am generating regression output tables from several regression models using the TexReg package in R Markdown. Is there a way to supply texreg with both long and short captions? When writing in straight LaTeX, I can do \caption[short caption for…
kww_AU
  • 11
  • 1
1
vote
1 answer

How do I export results from Marginal effects on Latex using Bife

I'm estimating a fixed-effects logit model using the bife package in R. I need to estimate the marginal effects of the estimation and export them to latex. However, the package that supports bife estimation, texreg, doesn't allow to export objects…
1
vote
2 answers

Change order of categorical variable and reference category using lm

I have an unordered categorical variable (event_time) with 5 different options ("future", "past", "prebirth", "never", "uncertain") as a predictor variable, and I want to specify somehow to make "never" the reference category (ideally without…
g_t_b
  • 143
  • 9
1
vote
0 answers

Getting htmlreg tables side by side instead of stacked in rmarkdown

I currently have three tables of regression output that I'm using htmlreg to create in R Markdown, but the default obviously is to just stack all three on top of each other if all 3 lines of code are in the same code chunk (or consecutive code…
g_t_b
  • 143
  • 9
1
vote
1 answer

How do I create regression table from dataframe with multiple estimates?

I have a data frame with estimates from multiple models, each ran on a separate country sample. cntry term estimate std.error statistic p.value 1 DE (Intercept) -2.775951e+00 1.140836e+00 -2.43325992 0.01496355 2 DE …
Erdne Htábrob
  • 819
  • 11
  • 29
1
vote
2 answers

Omit multiple factors in texreg

When using texreg I frequently use omit.coef to remove certain estimates (for fixed effects) as below. screenreg(lm01,omit.coef='STORE_ID',custom.model.names = c("AA")) In my lm model if I use multiple fixed effects how can I omit multiple…
John legend2
  • 840
  • 9
  • 18
1
vote
1 answer

Use `texreg` to display AIC, BIC gof stats

I'm using texreg to generate output tables of regressions. I'd like to include statistics such as AIC, BIC and HQIC as Goodness of Fit statistics. Replicatible example below library(texreg) library(tidyverse) mtcars model1 <- lm(mpg ~ disp, data =…
Jeremy K.
  • 1,710
  • 14
  • 35
1
vote
1 answer

stringr to extract a column of text

I have a string that looks like this: t2 <- "============================================ Model 1 Model 2 -------------------------------------------- education 3.66 *** 2.80 *** …
Jeremy K.
  • 1,710
  • 14
  • 35
1
vote
1 answer

regression output tables with standard errors in a new column, with "Latex look" html output

When displaying tables of regressions (say with stargazer or texreg::htmlreg), is there a way where I can: Make the standard errors be displayed in a new, separate column next to the coefficient estimates? Have the output in html, while having the…
Jeremy K.
  • 1,710
  • 14
  • 35