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
9
votes
2 answers

Adding multicolumns to my texreg output

I want to make a table with grouped columns via texreg. I can only see options for grouped rows (groups). Here's an example: set.seed(01349) DF <- data.frame(y = rnorm(100), x1A = rnorm(100), x2A = rnorm(100), x1B = rnorm(100), x2B…
MichaelChirico
  • 33,841
  • 14
  • 113
  • 198
9
votes
3 answers

Format model display in texreg or stargazer R as scientific

I just ran a statisitical model and i want it to display the results of the model as a table using stargazer. However, the large numbers are displayed in full. fit2<-lm(A~B,data=C) stargazer(fit2,type="text") With this table as…
Joke O.
  • 515
  • 6
  • 29
9
votes
1 answer

R texreg: How can I select the gof statistics to be displayed?

I'm using texreg to produce output tables for panel regressions with plm. I would like to surpress the output of all gof statistics. That is rather than showing R2, adj R2 and N. I would like to only show adj R2. Does anyone know of a simple way…
Andy
  • 295
  • 1
  • 8
7
votes
1 answer

Transform the coefficient and confidence intervals in texreg output

I am fitting several logistic regression models, and trying to use the package texreg to create a nicely looked table to present all models. As I know, texreg::screenreg can only report the coefficients (the betas) and the correspondings CIs, but…
pe-perry
  • 2,591
  • 2
  • 22
  • 33
7
votes
3 answers

Wrapping custom notes in texreg output

I'm trying to add a fairly long note to the bottom of a table created by texreg; I want this to simply wrap around, but there doesn't seem to be any functionality built into the function for doing so. Take, e.g.: texreg( lm(speed ~ dist, data =…
MichaelChirico
  • 33,841
  • 14
  • 113
  • 198
6
votes
2 answers

Is there a reasonable way with texreg or similar in R (making html tables) to round coefficients to different digits than goodness-of-fit measures?

I am using texreg to show regressions side-by-side, including SUR systems with systemfit, but I have some formatting constraints/preferences. I would like to be able to round the coefficients one way, while rounding the goodness-of-fit measures to…
Andrew A
  • 185
  • 2
  • 11
6
votes
2 answers

Formatted latex regression tables with multiple models from broom output?

I have several models such as the example below for which I have estimates, standard errors, p-values, r2 etc. as data.frames in tidy format, but I don't have the original model objects (analysis was run on a different machine).…
benedikt
  • 177
  • 1
  • 10
6
votes
3 answers

texreg on panelmodel (plm) object; additional gof information

How do I customize the goodness of fit (gof) in a texreg call? I have some plm models I want to display, but I only get "Num. obs.", "Adj. R^2", and , "R^2" (see working example below). I would howver like to all display small n, T, F-statistic, and…
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
6
votes
3 answers

Print "pretty" tables for h2o models in R

There are multiple packages for R which help to print "pretty" tables (LaTeX/HTML/TEXT) from statistical models output AND to easily compare the results of alternative model specifications. Some of these packages are apsrtable, xtable, memisc,…
majom
  • 7,863
  • 7
  • 55
  • 88
6
votes
2 answers

Combine texreg, knitr, booktabs & dcolumn

I'm trying to compile a LaTeX report using RStudio and knitr. I'm having a hard time getting the packages booktabs and dcolumn to work with my texreg-generated table. As an example, I am trying to recreate Table 2 in this example:. My attempt as a…
Maarölli
  • 375
  • 1
  • 3
  • 13
5
votes
1 answer

How to show significance stars in R Markdown (rmarkdown) html output notes?

I want to show regression outputs in HTML documents using R Markdown. I tried the texreg and stargazerpackages. My problem is now, that in the notes I can't bring the significance stars to life. Due to automatic generation it seems I can't escape…
jay.sf
  • 60,139
  • 8
  • 53
  • 110
5
votes
2 answers

Regression Tables in R Markdown / rmarkdown (html/pdf)

For the purpose of publishing I often need both a PDF and a HTML version of my work including regression tables and I want to use R Markdown. For PDF the stargazer and the texreg packages produce wonderful tables. Now trying to generate an equally…
jay.sf
  • 60,139
  • 8
  • 53
  • 110
4
votes
0 answers

How to get multiline model names in screenreg and texreg?

I want multiline custom model names in screenreg. I tried \n lfit1 <- lm(Sepal.Length ~ Petal.Width, iris) lfit2 <- lm(Sepal.Width ~ Petal.Width, iris) library(texreg) screenreg(mget(ls(pattern="lfit")), custom.model.names=c("Length of…
jay.sf
  • 60,139
  • 8
  • 53
  • 110
4
votes
1 answer

Computing p.values in spatial econometric models: why are there inconsistencies between summary() and texreg()?

I am estimating some spatial econometric models that contain both a spatial autoregressive term rho and a spatial error term lambda. In attempting to communicate my results I was using the texreg package, which accepts the sacsarlm models I am…
gfgm
  • 3,627
  • 14
  • 34
4
votes
2 answers

Add p-value of Hausman test (or other additional GOF measure) to texreg table

I use texreg to report the results of several random effects models (estimated using plm) in a table. How can I add the p-value of a Hausman test (comparing each model to its fixed effects counterpart) to the goodness-of-fit measures reported by…
severin
  • 2,106
  • 1
  • 17
  • 25
1
2 3 4 5 6 7 8