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
3
votes
1 answer

Multi-panel regression tables in R

I am trying to create a regression table that has two panels with overlapping but not identical dependent variables. For each panel, I want a title indicating the name of each panel as well as the dependent variables for each regression. # rm(list =…
Thomas J. Brailey
  • 151
  • 1
  • 2
  • 12
3
votes
1 answer

How to show only coefficients rounded to whole numbers in LaTeX tables?

Table generation in LaTeX using R's stargazer works great. But I can't figure how to format my numbers to whole numbers (this post is related, but different). Due to data scale, I want coefficients and standard errors to show no decimal. I therefore…
emagar
  • 985
  • 2
  • 14
  • 28
3
votes
1 answer

Rmarkdown, bookdown, texreg and cross-referencing

Cross-referencing a table made by texreg in bookdown halfway works. The table is numbered properly but the cross-reference ends up as '??' in the text. A MRE is below. Is there a solution to this, or is there another package that can solve this…
3
votes
1 answer

texreg table for impacts of spatial lag model

I am using spdep to run a spatial regression using a Durbin lag model. This type of model returns direct, indirect and total effects for each regression coefficient and their level of significance. Is there an R library like texreg that organizes in…
rafa.pereira
  • 13,251
  • 6
  • 71
  • 109
3
votes
1 answer

including a label for omitted coefficients in texreg

I want to replicate in texreg the functionality contained in stargazer via the arguments omit and omit.labels (see here). Unfortunately, I cannot use the stargazer package as it does not support the model I am using and is not extensible. Since…
gfgm
  • 3,627
  • 14
  • 34
3
votes
1 answer

R: Use greek letters as coefficient names in the output of htmlreg()

I would like to build a html table with html reg which includes mathematical symbols as custom coefficient names. A mock example: library(texreg) set.seed(20) q <- seq(from=0, to=20, by=0.1) y <- 500 + 0.4 * (q-10)^3 noise <- rnorm(length(q),…
S.K.
  • 365
  • 1
  • 3
  • 17
3
votes
1 answer

R :How to get a proper latex regression table from a dataframe?

Consider the following example inds <- c('var1','','var2','') model1 <- c(10.2,0.00,0.02,0.3) model2 <- c(11.2,0.01,0.02,0.023) df = df=data.frame(inds,model1,model2) df inds model1 model2 var1 10.20 11.200 0.00 0.010 var2 0.02 …
ℕʘʘḆḽḘ
  • 18,566
  • 34
  • 128
  • 235
3
votes
2 answers

How to use texreg after clmm (I want to extract random effect components)

I am re-writing this posting based on my progress after having advices from @PhilipLeifeld (see the comment section below). I have tried to put clmm outputs to latex, using texreg. Since the package does not support clmm in its default mode, I tried…
Han
  • 55
  • 9
3
votes
2 answers

How to decimal-align regression coefficients in Latex table output in rmarkdown document

In an rmarkdown document, I'm creating a Latex table of regression coefficients with standard errors to compare several regression models in a single table. I'd like to vertically align the coefficients for each model so that the decimal points of…
eipi10
  • 91,525
  • 24
  • 209
  • 285
3
votes
4 answers

Issue creating model summary table using package texreg with RStudio/rmarkdown/knitr

I'm using the RStudio IDE (v 0.99.323) with rmarkdown and am attempting to produce model tables via knitr using htmlreg to produce MSWord output. Suspect I've missed something simple. The rmarkdown chunk appended below creates a separate word file…
user25494
  • 1,289
  • 14
  • 27
3
votes
3 answers

How to fix the warning "label `' multiply defined"

I am running an lm regression in r, where there are categorical variables and numerical variables. I am usig knitr to compile the Rnw file to make a pdf. I use texreg to make latex regression tables. But when I do the compiling, it reported that…
Zhiling Wang
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

returning texreg() objects

I've a series of lme4 models I want to run in R on different outcomes in different subsets (each model is run on an Intention To Treat (ITT) and Per-Protocol (PP) subset, and I've different outcomes) and I use texreg() to print a LaTeX table to…
slackline
  • 2,295
  • 4
  • 28
  • 43
3
votes
1 answer

Using texreg (or similar) to produce a regression table for clustered standard error function (cl) output

I've been using the excellent package texreg to produce LaTeX-ready regression tables from fitted model objects, but it doesn't seem to be compatible with various functions that adjust my standard errors for clustering. Some fake data and code…
generic_user
  • 3,430
  • 3
  • 32
  • 56
3
votes
1 answer

Robust se. (vcovHC) to be shown with texreg in R

I am doing some regressions with the plm package, then if needed, I also obtain heteroskedasticity consistent coefficients. Below are the commands that I run; library(plm) data("Produc", package = "plm") zz <- plm(log(gsp) ~ log(pcap) +…
heimatlos
  • 229
  • 1
  • 3
  • 9
2
votes
1 answer

Add big.mark = "," to texreg output

How do I add big.mark = "," to, say, the every column's number of observations or the number of clusters or the number of groups, etc to a texreg output? They all are or seem to be integer numbers, but each line can be identified by the entry in the…
Grillo
  • 75
  • 6