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

How to change colour of only used borders in html table?

I have this table in my Rmd presentation: that was obtained doing stargazer(fit, type = "html") I tried to include css in my Rmd like: table, th, td {border: 1px solid white;} And the result is: I want to re-colour just actually used borders. Like…
pachadotdev
  • 3,345
  • 6
  • 33
  • 60
0
votes
1 answer

Upload non-R objects to Dropbox without local Dropbox directory

I know that there is a package (rDrop) to upload R objects into Dropbox. I'm using stargazer to consolidate my regressions in clean HTML tables. Is there a way to upload these into Dropbox as well? So not R objects? Or is there a workaround to get…
deca
  • 730
  • 1
  • 8
  • 24
0
votes
1 answer

Extending Stargazer to multiwaycov

I'm using stargazer to create regression outputs for my bachelor thesis. Due to the structure of my data I have to use clustered models (code below). I'm using the vcovclust command from the multiwaycov package, which works perfectly. However,…
bgf
  • 11
  • 3
0
votes
2 answers

Stargazer for reporting odds ratios in logit report wrong significance stars

I am running a logistic regression and reporting the results with stargazer. I've noticed that when I apply the apply.coef = OR option (so that the odds ratios would be reported), the significance stars are reported wrongly - in some cases there is…
user3017075
  • 351
  • 3
  • 16
0
votes
1 answer

Stargazer variable headings for multiple linear models

I have multiple linear models with the same dependent variables (Y) and a varying explanatory variables that I need to summarize in a table. However, stargazer adds the same Ys to the heading for each group of explanatory variables making the table…
First
  • 1
  • 1
  • 2
0
votes
0 answers

Stargazer isn't performing summary statistics on ALL of my columns

These are my column names: colnames(QTrain70) [1] "Depth"``"Garage_Spa"``"Total_Liva"``"NEAR_DIST.Vac" [5]"NEAR_DIST.ComCor"``"NEAR_DIST.LIViol"``"NEAR_DIST.Retail"``"NEAR_DIST.SeptST" [9] "NEAR_DIST.TrafDat"…
0
votes
1 answer

How to use Stargazer to print fit in rpy2

I'm learning how to use rpy2, and I would like to create formatted regression output using the stargazer package. My best guess of how to do this is the following code: import pandas as pd import rpy2.robjects as robjects from…
bhackinen
  • 123
  • 1
  • 5
0
votes
0 answers

How to print a long column from a dataframe splited in two columns side by side

I have a dataframe with 60 rows of data, here I'm posting a single column of it, so we have some data to work: local N 1 IPA 0.164 2 IPA 0.045 3 IPA 0.069 4 IPA 0.100 5 IPA 0.050 . . . . . . . . …
rvbarreto
  • 683
  • 9
  • 24
0
votes
2 answers

Show the Result of Amelia, Multiple Imputation, by texreg or stargazer

I would like to know how to export the outcome of Multiple Imputation Amelia summary to tex or html by texreg or stargazer. However, both type of packages show the error. library(Amelia) library(Zelig) library(texreg) library(stargazer) mi…
user87562
  • 113
  • 5
0
votes
1 answer

Waldtest in R to get adjust F statistic with plm and result shown with stargazer?

I am working with an unbalanced short panel. Raw data: bankFull.xlsx What I actually want is only get the regression results with two side fixed effects and robust S.E reported, which is very easy in Stata. I followed online tutorial but ran into…
0
votes
1 answer

Custom confidence intervals with ci.custom in stargazer for one variable model

When I'm adding custom confidence intervals with "ci.custom" in "stargazer" for one variable model, R returns: "Error in if (ncol(ci.custom[[i]]) != 2) { : argument is of length zero". When I do the same, but with several independent variables,…
0
votes
0 answers

Exporting regressions to latex with different covariance matrices in R

I would like to know if there is a way to use the stargazer package, or any other similar package, to export regression tables from R to latex using two different covariance matrices. When I say two different matrices I mean using both robust and…
Felipe Alvarenga
  • 2,572
  • 1
  • 17
  • 36
0
votes
1 answer

How to make an object from a class table print as a table in stargazer?

I'm using a markdown document to write text from R. At some point, I want to add a table that I calculated using the table() function. But it's not working. library(stargazer) x=structure(c(2075L, 49L), .Dim = 2L, .Dimnames = structure(list( …
M. Beausoleil
  • 3,141
  • 6
  • 29
  • 61
0
votes
1 answer

How combine columns on stargazer?

I want to make a table with stargazer. First I assigned the outcome of my formula to rAgg. After this I want to make a stargazer table with the following commands: a <- rAgg$ors.ctx b <- rAgg$ors.indiv c <-rAgg$lik rbind(a,b,c) An example of the…
Keizer
  • 23
  • 1
  • 6
0
votes
1 answer

R: creating tex output from zelig tobit model with texreg

What I am trying to do should be fairly easy: I estimate a tobit model using the R package Zelig. From this I want to create a tex output using texreg. But what I get back is the error message: Error in (function (classes, fdef, mtable) : …