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

Using stargazer with memory greedy glm objects

I'm trying to run the following…
Guest3290
  • 167
  • 9
2
votes
1 answer

Space after pipe when converting from R to LaTeX with knitr

I have this code contained in a .Rnw file: \documentclass[a4paper,11pt]{article} \usepackage{lipsum} % Required to insert dummy text \begin{document} \title{} \date{\today} \maketitle \section{Header} Lorem ipsum dolor sit amet, consectetur…
luciano
  • 13,158
  • 36
  • 90
  • 130
2
votes
1 answer

One single output file for many regressions

Is there a way to write text output from stargazer to one single file from several regressions? As far as I see, I can specify the out= parameter at each single regression but how to tell stargazer to use one single text file?
paljenczy
  • 4,779
  • 8
  • 33
  • 46
2
votes
1 answer

Dummy variable with stargazer

I'm doing an estimation using a lot of dummy variables. However I am not interested in the estimation coefficient of some dummy variable. I use them just for controling other variables. I just want to specify that I have used them I would like to…
DJJ
  • 2,481
  • 2
  • 28
  • 53
2
votes
2 answers

Is it possible to report NAs in stargazer table?

Stargazer package gives me really nice descriptive table to include in latex document. library(stargazer) stargazer(attitude) Is it possible to add a column reporting number of NAs for each of the variables?
radek
  • 7,240
  • 8
  • 58
  • 83
2
votes
1 answer

stargazer() with Zelig regression output

I'm working with the R package stargazer. I have a Zelig model that I can't get stargazer to create Latex code for. logit9.1 <- zelig(winner ~ treatment + count_parties + resp_OECD24 + DirExp + IndExp, data = outcome, model = "logit" ,robust =…
ZacharyST
  • 658
  • 2
  • 6
  • 22
1
vote
1 answer

Variables printing more than once in Stargazer (without interactions or comparing multiple models)

I'm trying to print the following model in R a = subset(control,…
1
vote
1 answer

Can you make Stargazer regression output tables when you have a list?

I ran an binomial logit model while controlling for bank- and time-fixed effects by using the feglm() function from the fixest package. However this function saves the regression output as a list. Unfortunately Stargazer doesn't seem to recognize…
MathisVS
  • 13
  • 2
1
vote
1 answer

An knitr + LaTeX / Beamer error that only appears when using kableExtra + stargazer in a particular order

I have encountered a strange error that appears when I use a combination of kableExtra output and stargazer output. Here is the error message: ! Illegal parameter number in definition of \beamer@doifinframe. A minimal working…
1
vote
1 answer

Custom Standard Errors with Statsmodels / Stargazer

I am running a series of OLS regressions in Python, where I am using standard errors that I calculate using a custom function. I am now exporting my regression results into tables, and plan on using the stargazer package (linked here). However,…
1
vote
1 answer

Descriptive Statistics table for several variables and by group

I'm trying to create descriptive statistics in a "publishable" html format. Let's take the mtcars data and assume I want to create a table that gives me the usual descriptive statistics for Miles/(US) gallon, Gross horsepower, Weight (1000 lbs), and…
KSM
  • 11
  • 2
1
vote
1 answer

Stargazer in R reporting t-value in addition to standard error and estimates

I would like to add the t-value underneath the standard error in square bracket, how can I accomplish this with Stargazer? school.reg1 <- lm(math~income+students+english, data=CASchools) school.reg2 <- lm(read~income+students+english,…
nerd
  • 473
  • 5
  • 15
1
vote
1 answer

How do I compare summary statistics for two variables in r (in console, not viewer)?

I am trying to do a simple comparison of summary statistics for two variables in R (econmath$act; and econmath$act0). In this chunk of code I create the variable…
AKJ
  • 47
  • 5
1
vote
0 answers

How to display a Ridge Regression using the Stargazer package? (error: Unrecognized object type)

I am trying to use the stargazer package to display a Ridge Regression, but the error appears: unrecognized object type. Do any of you know how to fix it? Or know other packages that show a good table with the regression results in R? I appreciate…
1
vote
1 answer

stargazer in markdown not reading the table when knit to pdf

I'm using stargazer for tables but everytime I knit to pdf it doesn't read the latex code and my pdf does not have a table. How do i get rmarkdown to produce an actual table? I've tried lots of different stargazer tables, but they all have this…
bee761
  • 25
  • 3