Questions tagged [stargazer]

Stargazer is an R package that produces LaTeX code for well-formatted tables that hold regression analysis results from several models side-by-side, as well as summary statistics.

Stargazer is an package that produces code for well-formatted tables that hold regression analysis results from several models side-by-side, as well as summary statistics.

Repositories

Vignettes

588 questions
6
votes
2 answers

Stargazer tables: Math Annotations

The stargazer package for R has two arguments, covariate.labels and column.labels, that customize table text. I want to use Greeks or math expressions in these arguments. Ive tried standard syntax for latex text and Ive tried stand R expressions,…
Brad Horn
  • 649
  • 6
  • 12
6
votes
2 answers

How do I add confidence intervals to odds ratios in stargazer table?

I am trying to create a table of a multivariable logistic regression model using stargazer. I would like to include odds ratios and their confidence intervals instead of the model coefficients. I figured out how to replace the coefficients with the…
MC808
  • 178
  • 1
  • 6
6
votes
1 answer

Stargazer Omit test statistics

When using stargazer there is an argument, omit.stat, however I need to remove the test statistics from below my coefficient values and it isn't an argument listed in the stargazer package documentation (PDF) (pp. 14–15). Does anyone know how I…
DrewH
  • 1,657
  • 3
  • 14
  • 10
6
votes
2 answers

How to display "beautiful" glm and multinom table with Rmd and Knit HTML?

When I perform a multinom reg. I have difficulties to get a nice summary with Rmd and and Knit HTLM (Rstudio). I would like to know how to get a nice summary as if I use the stargazer package with LaTeX... (cf. printscreen) Summary output difficult…
S12000
  • 3,345
  • 12
  • 35
  • 51
5
votes
1 answer

How do I fix the unrecognized object error in Stargazer with a dynlm model?

I calculated a dynlm model and now want to get stargazer to export that. However, stargazer does not return any output, instead gives me the Unrecognized object type Error. I already checkd if dynlm objects were supported by stargazer and according…
user12575032
  • 77
  • 1
  • 6
5
votes
1 answer

Stargazer summary table is empty

I want to make a summary-stargazer table in R, which gives me the respective number of observations N, the mean, the standard deviation, minimum and maximum for the variables "educ" and "exper". I used the following code in order to generate a table…
MARIUS
  • 165
  • 1
  • 2
  • 6
5
votes
4 answers

Recode summery/overview of levels before and after recoding

I have dplyr::recode some factors and I am looking for a clean way to make LaTeX table where new and old categories, i.e. levels, are compared. Here's an illustration of the issues using cyl from `mtcars. First some packages, #…
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
5
votes
1 answer

Can stargazer follow booktabs style?

I am quite in doubt about which table formatting package to use, being xtable and stargazerthe alternatives. I find Stargazer easier to understand when building tables - specially if a need to use column spanning. However, I do not know how to make…
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
5
votes
1 answer

star.cutoffs include only p<0.05 and p<0.01

In the default setting, "stargazer" shows three star cutoffs (*p<0.1; **p<0.05; ***p<0.01), but I want to only include two cutoffs, **p<0.05; ***p<0.01. When I put, star.cutoffs = c(0.05, 0.01) I get the result as: *p<0.05; **p<0.01;…
5
votes
1 answer

stargazer - user supplied coefficients and SE

I am using the stargazer package for regression outputs in R. I have a customized estimation procedure that does not result in a model object but only a vector of coefficients and standard errors. Is there a way I can supply these to stargazer and…
paljenczy
  • 4,779
  • 8
  • 33
  • 46
5
votes
1 answer

Variable group headings in stargazer summary table

I want to automate the generation of descriptive tables with headings for groups of variables - using knitr and (ideally) stargazer. Since I need weighted descriptives, I do not use stargazer's built in summary functions but generate a dataframe…
fmerhout
  • 164
  • 2
  • 11
5
votes
1 answer

Is it possible to add a custom column in stargazer?

I would like to add an additional column to my variable names so that I may identify the exact parameters the labels are referring to. I realize that I don't need to add a custom column, but I think it would like nicer if I could. Preferably, the…
5
votes
0 answers

Stargazer error with plm

I obtain an error when using stargazer in conjunction with plm. Everything works fine for ordinary linear models. Here's an example: library(plm) library(stargazer) # create test data dat <- data.frame(y=runif(1000), …
Max
  • 51
  • 3