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

R Stargazer report coefficients, confidence intervals and exact p-values

I am running a Country Fixed Effects model further including a dummy variable. I am using the Stargazer package, but can not seem to figure out how to report both the confidence intervals and the exact p-values. If I run my model:…
AnnaSonder
  • 31
  • 1
  • 2
3
votes
1 answer

how to work with prais.winsten results in stargazer and broom (r)

The package "prais" contains the function prais.winsten to run a regression models with Prais Winsten estimator. However, neither stargazer nor broom packages seem to work with the results from the prais.winsten function. After fitting a model of…
jlp
  • 165
  • 1
  • 3
  • 12
3
votes
1 answer

lapply to estimate with many dependent variables then tabulate with Stargazer

I'm trying to: (1) estimate multiple models where only the dependent variable changes (2) Tabulate the results with the Stargazer package The following code works, but I have to repeat a line of code for each model: library(stargazer) …
Jeremy K.
  • 1,710
  • 14
  • 35
3
votes
3 answers

Stargazer error with polr in R

I obtain an error when using stargazer in conjunction with polr from the MASS package in R. Here is an example: library(MASS) library(stargazer) # Fake data set.seed(1234) fake_data <- data.frame(y = as.factor(sample.int(4, 20, replace = TRUE)), …
Dan
  • 57
  • 4
3
votes
3 answers

Julia: Export results to table: example code

Please point to example code and documentation on approaches to export some data and simulation results to a tidy, readable table that could easily be copy-pasted or imported into documents, particularly for post-processing with LaTeX. My current…
PatrickT
  • 10,037
  • 9
  • 76
  • 111
3
votes
2 answers

R stargazer package output: Missing F statistic for felm regression (lfe package)

I am trying to use the stargazer package to output my regression results. I performed my regressions using felm from the lfe package. The stargazer output tables shows everything properly except the F statistic values which remain blank. The issue…
Learner Yoda
  • 33
  • 1
  • 7
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
2 answers

Including standardized coefficients in a stargazer table

I have a series of linear models and I'd like to report the standardized coefficients for each. However, when I print the models in stargazer, it looks like stargazer automatically prints the significance stars for the standardized coefficients as…
spindoctor
  • 1,719
  • 1
  • 18
  • 42
3
votes
1 answer

Using stargazer with Zelig

I am trying to use stargazer (Version 5.2) to output the standard summary() results of a regression estimated with Zelig (Version 5.0.13). However, I obtain the error Error in envRefInferField(x, what, getClass(class(x)), selfEnv) : ‘result’ is not…
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

R stargazer: Different decimals

I have a problem with my stargazer output in R. Here's my original dataframe: Rank p LMax 10% 5% 1% var1 0.427 24.25 21.8 27.4 31.5 var2 0.228 7.23 11.5 12.2 16.7 What stargazer creates: stargazer(data_summary, summary=FALSE,…
RPacker
  • 183
  • 1
  • 3
  • 10
3
votes
1 answer

stargazer with R table output or for "special" summary statistics

I have a categorical variable, df$Chain, taking on levels 1,2,3 and 4. I have a variable, df$State, taking on levels 0, 1. I would like to produce a table that shows proportions by state. The standard deviation of the proportions and the t-statistic…
clog14
  • 1,549
  • 1
  • 16
  • 32
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
0 answers

Using stargazer with RMardkown to generate LaTex table with a list of models

I would like to introduce a table with outputs of regression model generated via stargazer package into the RMarkdown document. RMarkdown The code pertaining to the RMarkdown document is given below: --- title: "Text" author: "Author" date: "1…
Konrad
  • 17,740
  • 16
  • 106
  • 167
3
votes
1 answer

Separate statistics into multiple columns

I'm trying to use stargazer to create a regression table with the results of two separate regression models. I want the table to display regression coefficients, 95% confidence intervals, t-values, and p-values, and I've managed to get that…
abclist19
  • 363
  • 1
  • 3
  • 12