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

Resizing a stargazer table in Knitr

I've put together a document using knitr and while most of the document looks fine, there's one regression table that's too wide to fit on a page without some alteration. The regression table is generated using stargazer, and is quite wide. I've…
user43885
  • 33
  • 1
  • 5
3
votes
1 answer

R: How do I coerce stargazer to include two models (which have the same coefficients) within the same table when it is not automatically doing so?

I am generating ecological inference estimates from ei.MD.bayes (as part of the eiPack) available in R. I want to manipulate the cell count estimates (i.e. Mean, Std. Error, 2.5% and 97.5%) so that they are printed in a table using stargazer. I've…
Jennifer Boylan
  • 123
  • 1
  • 8
3
votes
1 answer

new font style for stargazer latex table when using knitr

I want to print a latex table generated with stargazer() in monospaced font, and I want to do it in a reproducible way with knitr (i.e., no manual latex coding). I tried to define an environment called mymono and then wrap the knitr chunk in this…
Eric Green
  • 7,385
  • 11
  • 56
  • 102
3
votes
2 answers

how to get beautiful latex output of "nls" object

I need LaTex representation of an "nls" object. Unfortunately stargazer doesn't support this object type. Some research on the net led me to as.lm.nls function out of nls2 library. It claims to convert an nls object to corresponding lm object. In my…
kishore
  • 541
  • 1
  • 6
  • 18
3
votes
2 answers

Nested latex table with stargazer

I have a list of dataframes like these: library(plyr) mt_list <- dlply(mtcars, .(cyl), data.frame) names(mt_list) <- c("four", "six", "eight") I want to create a nested latex table using the stargazer package. By nested, I mean I want to combine…
luciano
  • 13,158
  • 36
  • 90
  • 130
3
votes
1 answer

Displaying degrees of freedom in stargazer table

When constructing documents with Sweave and R, I make use of the stargazer library for tables. When using stargazer, is there a mechanism to display the degrees of freedom associated with the residual deviance for a model constructed with glm?…
t-student
  • 414
  • 2
  • 16
2
votes
1 answer

zeroinfl report in irr and or: trouble with stargazer

I am having some trouble reporting results from a series of zero inflated poisson regressions. I am trying to use stargazer to output the results. I'm starting with the dummy data from UCLA, and some dummy regressions: # This example comes directly…
tchoup
  • 971
  • 4
  • 11
2
votes
2 answers

How to move the Observations row manually in a stargazer table in R and to stack entries?

I have an example regression table in R that was created using the stargazer package: ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69) group <- gl(2, 10, 20, labels =…
user321627
  • 2,350
  • 4
  • 20
  • 43
2
votes
1 answer

How to fit Stargazer tables to the page width (! please not scale the table)

Is there a way to get page-width tables by slightly revising the tex code generated from Stargazer? Tex code generated from Stargazer does not adjust the table's width, so it is often too long or narrow. A short example of the original Stargazer…
2
votes
1 answer

stargazer output several models R

I run three different estimations of panel linear models (fixed effects model with two fixed effect (id and year)). fixed_YIELD_mean_to_treat.100 <- plm(YIELD_mean_total ~ treated.100 + Nightlight_sum + Population_sum + temp_mean, data= Results,…
Sulz
  • 333
  • 1
  • 8
2
votes
2 answers

R package stargazer produces two table outputs instead of one

I'm currently struggling with r markdown, knitr, and, the stargazer package. More specifically, I want to produce the output of a logistic regression: {r table1, include = TRUE, echo = FALSE, results='asis', message = FALSE} testmodel <-…
Marco Rapp
  • 23
  • 5
2
votes
2 answers

How to report a standardized model in stargazer package?

I made the following simple regression model and used stargazer to output a table that plots the standardized vs non-standardized regression model coefficients, standard errors and p-values. library(lm.beta) mod <- lm(mpg ~ cyl + disp,…
2
votes
1 answer

present all the outputs of glm in a nice table for comparison

I have used the solution presented by @StupidWold here to develop a glm and the results are stored in models. The outputs seem to be correct. However I am wondering how to present all of the outputs at once instead of calling each one separately. I…
SamR
  • 45
  • 5
2
votes
2 answers

Betareg in Stargazer (Error to allocate vector of size __)

betareg default residuals are heavy, which may cause an error to allocate vector due to its high size. This can be solved by changing the type of residuals in the summary call as explained here. However, when presenting regression tables with…
jlp
  • 165
  • 1
  • 3
  • 12
2
votes
1 answer

Summary table with stargazer(), qwraps2() generates \$\textbackslash pm\$

I try to get summary table using stargazer() and qwraps2() package, But my code does not generate a desired outcome instead weird expression like \$\textbackslash pm\$, variable name does not show up and most numbers do not have commas. Wondering…
jck21
  • 751
  • 4
  • 16