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

Error in exporting fixed effects feols model with texreg

I am trying to export fixed effects model estimated with fixest using texreg. It yields an error: > library(fixest) > library(texreg) > > race <- sample(c(0,1), replace=TRUE, size=100) > sex <- sample(c(0,1), replace=TRUE, size=100) > stranger <-…
Alex Knorre
  • 620
  • 4
  • 15
2
votes
1 answer

Removing frame from and rotate header on plotreg() output

I'm using plotreg() from the texreg package to display coefficient and CI estimates, but I find that I was not able to reproduce graphical output with layout similar to those done by others. For example, using the working example here: #…
Chris T.
  • 1,699
  • 7
  • 23
  • 45
2
votes
2 answers

In R, make a "pretty" result table in LaTeX, PDF, or HTML from "IRR" package output

Background I'm using the irr package in R to generate some inter-rater reliability statistics for a project I'm doing. Here's an example of Fleiss's Kappa using the package's built-in data: install.packages("irr") library(irr) data("diagnoses",…
logjammin
  • 1,121
  • 6
  • 21
2
votes
1 answer

How to add additional GOFs such as ivreg diagnostics to regression tables?

For my stargazer table I would like to include the diagnostics of weak instrument and Wu Hausman test. I read the following answer: R: Robust SE's and model diagnostics in stargazer table. Though, I don't really understand this. How can you apply it…
es_dutch
  • 111
  • 1
  • 8
2
votes
0 answers

R: Extend plm() and coeftest() output printed via texreg()

Consider the following simplistic example of fixed effects regressions: # Load packages packs <- list("texreg", "plm", "lmtest") lapply(packs, require, character.only = T) # Load mtcars data set d <- mtcars # Run fixed effects…
Chr
  • 1,017
  • 1
  • 8
  • 29
2
votes
1 answer

Displaying the variable names according to the sequence appeared in the regression models using `texreg`

Using texreg, I am trying to display the variable names according to the sequence appeared in the regression models. For instance: I create an interaction term of Sepal.Widthand Petal.Length. iris$Interaction = iris$Sepal.Width *…
Xing Zhang
  • 175
  • 1
  • 5
2
votes
0 answers

making texreg (LaTex or HTML table output) work with splm model

My post follows after the one below, which remains unanswered. In R - How to use spml objects in Stargazer Since stargazer does not work with splm models, I tried texreg, as suggested in the post above. basically these is what I do: …
Mina Wu
  • 61
  • 6
2
votes
1 answer

Table spacing issue converting to PDF via LaTeX with pandoc

I'm facing the issue that in R texreg() doesn't seem to break the lines in the notes below the table. Also the margins between the models are not extended equally like it's happening with htmlreg() which gives a clean result. Manual breaks like \n…
jay.sf
  • 60,139
  • 8
  • 53
  • 110
2
votes
1 answer

texreg in Rmarkdown/knitr

Simple question: can I use texreg in a markdown (not LaTex) document in Rmarkdown using knitr? I thought I could, but it seems I'm wrong? I can include LaTex code within Rmarkdown for equations but have no success for tables with texreg (at least…
cibr
  • 453
  • 5
  • 16
2
votes
1 answer

using texreg with Rmarkdown to get word documents

When I used Sweave, I loved texreg package for pretty printing model results into latex. I moved to RMarkdown to produce word document, and I am facing issues since I am not more able to recycle old texreg code. Is it any way to amend this chunk to…
Giorgio Spedicato
  • 2,413
  • 3
  • 31
  • 45
2
votes
1 answer

How can I use TexReg (1.36.4) for a "relogit" model estimated using Zelig (v. 5.0-13)?

I know that Zelig is a wrapper... But still, it provides nice simulation capabilities (which I wouldn't be able to do on my own). Lets say I have this data, set.seed(123) x1 = rnorm(5) x2 = rnorm(5) z = 1 + 2*x1 + 3*x2 pr = 1/(1+exp(-z)) y…
2
votes
1 answer

Generalized Linear Model output through texreg

I can use texreg to get beautiful output of glm to be used for knitr. Sometimes we need to convert the output of glm back to response using inverse link. I wonder how to get inverse link output with texreg. Something like texreg(exp(glm.D93)).…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
2
votes
2 answers

get rid of captions when using texreg in Rmarkdown

How do you suppress captions for a texreg table? I'm using Rmarkdown to generate a LaTeX file. Here's a simple example: ```{r, echo=FALSE, message=FALSE, results="asis"} library(texreg) data <- data.frame(a=c(1,2,3,4), b=c(6,3,4,4)) texreg(lm(a~b,…
Cyurmt
  • 101
  • 9
2
votes
1 answer

how to display t value in texreg

I'm a beginner in R, and I have got a question on texreg. I have been searching for information online for days but I didn't find much. I want to include the t value in my exported table by using texreg, and I want my t value to be located just…
Imed
  • 31
  • 2
2
votes
1 answer

RPy boolean values for texreg

I'm using the texreg package to print LaTeX tables for my R linear models. The default settings of the package include printing many things which are irrelevant for my analysis. Luckily the package provides switches to turn many things off. I have…
TheChymera
  • 17,004
  • 14
  • 56
  • 86