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 tabulate the results of a model with multiple LHS in R?

When multiple regressions have the same RHS, it can be more efficient to run them in one go (see Fitting a linear model with multiple LHS). E.g., using lm and felm : library(lfe) lm.fit.m <- lm(cbind(mpg, cyl) ~ gear, mtcars) fe.fit.m <-…
dzeltzer
  • 990
  • 8
  • 28
1
vote
1 answer

How to export 'flexmix' model (in R) into Tex?

I have used the R package 'flexmix' to create some regression models. I now want to export the results to Tex. Unlike conventional models created with lm(), the flexmix models are not saved as named numerics but as FLXRoptim objects. When I now use…
1
vote
1 answer

Outputting the results from bife object to Latex in Rmarkdown?

I'm estimating a fixed-effects probit model using the bife package in R. I'm trying to extract the output into something I can use with either stargazer or texreg so I can output them into a paper using Rmarkdown to create a LaTeX object. I'm aware…
ModalBro
  • 544
  • 5
  • 25
1
vote
0 answers

significance stars in the goodness-of-fit section

It's relatively straightforward to include diagnostic test results for a regression in the texreg table by modifying the corresponding extract function. For example, I have added a section about the KPSS unit-root test to the extract.lm function: if…
1
vote
2 answers

How to export the regression table for the results with robust standard error or clustered standard error with package lfe?

Using the package lfe, I can generate the regression results with either robust standard error or clustered standard error using command felm. For the standard regression, I can export the regression table with the texreg package using function…
johnsonzhj
  • 517
  • 1
  • 5
  • 23
1
vote
1 answer

dcolumn not available. Solution or alternative (for use with texreg)?

I would like to use dcolumn to align table columns in a texreg output, as recommended in the user guide for texreg. However, dcolumn seems not available for the current version of R: > install.packages("dcolumn") Warning in install.packages…
cibr
  • 453
  • 5
  • 16
1
vote
1 answer

extract rowwise_df regressions to display using texreg

inspired by SO this answer I'm using teh do dplyr to perform several regressions at once, I would however like to display my output using texreg and do() produces a rowwise_df object, but if I extract the list of regression some information seem to…
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
1
vote
1 answer

Table numbering in texreg output

Texreg is the only package I found that produces nicely formatted Latex tables for multi-level regression (e.g., lmer). The generated table caption is "Table N: caption", where N is the number of texreg tables in the document up to that point,…
Victor Kostyuk
  • 621
  • 5
  • 16
1
vote
1 answer

changing font in texreg table

I would like to change the font in a texreg produced table. I'm knitting the table RStudio's Rmarkdown, so modifying the LaTeX directly is not an option. Here's an example. The headings, coefficient names, and some of the results are printed in…
Eric Green
  • 7,385
  • 11
  • 56
  • 102
1
vote
1 answer

texreg: How to save space in htmlreg-regression tables?

Is there a way to reduce the vertical size of a htmlreg-table? I have severeal modells with about 10 or more IV. So atm I need an entire page to present my regressions results. I would like to save some lines by reporting SD or SE (in parenthesis)…
Mac
  • 183
  • 1
  • 13
1
vote
2 answers

Confidence intervals with clustered standard errors and texreg?

I'm trying to reproduce the 95% CI that Stata produces when you run a model with clustered standard errors. For example: regress api00 acs_k3 acs_46 full enroll, cluster(dnum) Regression with robust standard errors Number of…
Ignacio
  • 7,646
  • 16
  • 60
  • 113
1
vote
1 answer

Exporting R output into Latex - Stargazer for non suported objects

I'm estimating models in R using the frontier package and I need to export the results into Latex. The output is quite similar to a lm regression [see below] but frontier objects are not supported by stargazer to export them into Latex code. Is…
user3507584
  • 3,246
  • 5
  • 42
  • 66
1
vote
1 answer

texreg output with RStudio and rmarkdown

I have a question that seems so simple and fundamental that I can't find the solution online. How do I make knitr (or Pandoc) evaluate the output given by the texreg functions? A minimal example: My entire .rmd file code: --- title: "test…
Adam C
  • 334
  • 1
  • 9
1
vote
0 answers

experiencing issue with using texreg in R markdown

I'm experiencing issue with using texreg in R markdown to produce PDF. I'm not sure if it's the new OSX or something about my set up. (I'm new to MAC and relatively new to R.) So far... I cannot run my old latex files. I can run the old latex…
1
vote
1 answer

texreg with lmer and lme objects -- variances differ

Folks, I'm trying to print a {texreg} table of lmer() {nlme} and lme() {lme4} models including variances. The variances however, differ significantly between the two model (several orders of magnitude). It seems that the lme() variances are the…
Chris
  • 1,479
  • 2
  • 15
  • 19