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

Stargazer() does not fit the page

Good afternoon, I was trying to find the answer to such question, although there is no information. The point is that I want to put the output of my models (3 models) in the latex file. Although, when I do such thing using stargazer() it leads to 2…
Kakalukia
  • 63
  • 1
  • 2
  • 7
2
votes
1 answer

Stargazer, no output

I have recently installed R to work on a dataset for a University project. After succesfully downloading the package "stargazer" in R Studio and loading it into my script, I imported my dataset from an excel sheet. However,whenever I run the…
Branko Castro
  • 23
  • 1
  • 3
2
votes
1 answer

How to use stargazer/xtable with pggls objects from the plm package?

I'm trying to convert the output of some regression to latex with xtable or stargazer. I never had issues before, and the results of multiple regressions are organized neatly in a latex table. I'm using Fixed Effects FGLS. Therefore, I'm using the…
Mario GS
  • 859
  • 8
  • 22
2
votes
1 answer

Stargazer: line type

I am struggling with working out how to control the line style settings in stargazer. Below is my current working example. I like the double line at the top of the table, but I would like to replace the double line at the bottom of the table with…
2
votes
3 answers

Regression table for bayesglm?

stargazer is a great tool to generate a regression table if you are not using bayesglm. For example, suppose I have the following data: library(dplyr) set.seed(9782) N<-1000 df1 <- data.frame(v1=sample(c(0,1),N,replace = T), …
Ignacio
  • 7,646
  • 16
  • 60
  • 113
2
votes
0 answers

stargazer in a .Rpres file

I'm trying to make a presentation in an R Presentation (.Rpres) file and wanted to include a regression table using the stargazer package. I was using this cheatsheet as a guide (http://jakeruss.com/cheatsheets/stargazer.html). Using the regressions…
wytham
  • 98
  • 6
2
votes
2 answers

Using Stargazer in R to export csv direct into Excel

I am trying to get the stargazer R package to spit out a huge .csv. descriptive statistics table for 43 different companies into Excel. I have 43 different data frames pertaining meetings at 43 different corporation. I am currently trying to create…
Dleightful
  • 107
  • 2
  • 13
2
votes
0 answers

Pandoc is not converting Stargazer output into Latex

I am using the following Stargazer code: library(stargazer) stargazer(r_1, r_2, r_3, r_4, title="Regression Results", align=TRUE) I then knit my file and produce a .md markdown file. I run pandocs from the pandoc "myfile.md" -o output.pdf…
Parseltongue
  • 11,157
  • 30
  • 95
  • 160
2
votes
1 answer

Compatibility between R stargazer and LaTeX \textsubscript

I would like to combine stargazer (from the same named R package) with \textsubscript to end up with a LaTeX table that looks roughly like this. My first approach dat <- data.frame(count = 4000, value = .4) rownames(dat) <-…
fdetsch
  • 5,239
  • 3
  • 30
  • 58
2
votes
1 answer

R->TeX Table Package: after inputting data manually, SEs and stars are missing in output

Why isn't stargazer outputting standard errors and stars in the below table? How can I get stargazer (or another table package) to present the standard errors in parentheses below the coefficient, and present significance stars next to the…
Dr. Beeblebrox
  • 838
  • 2
  • 13
  • 30
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
1 answer

Rotate stargazer table in knitr

I am using knitr to write a .Rnw file and the stargazer packages to build tables for regression outputs. For the most part it is working quite well but I would like to rotate a table 90 degrees like I would easily be able to do in LaTeX using…
Darin Self
  • 77
  • 1
  • 10
2
votes
0 answers

Initial zero argument in stargazer() removes negative sign

Compare the x coefficients in outputs from the stargazer function below. The initial.zero=FALSE argument removes the negative sign. Is this expected? set.seed(1234) y<-rnorm(1000) x<-…
marco
  • 73
  • 1
  • 8
2
votes
2 answers

How to output several variables in the same row using stargazer in R

I would like to output the interaction terms from several regressions in the same row and call it "Interaction". So far what I have is that the interaction terms show up in two different rows called "Interaction" (see code below). This question has…
Seb
  • 370
  • 2
  • 14
2
votes
1 answer

stargazer over a list of summaryBy

I'm trying to get a unique table of summary statistics (eg. mean) for two variables in my data.frame (prezzo and prezzo_unit_2 - sorry for not being generic) by several groups corresponding to categorical variables. Since I was not able to do it, I…