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 get a nice output-table for a GOLM using package "oglmx"?

I run a generalized ordinal linear model with the package "oglmx" - so far so good. The model is specified as follows: scarce.cs.golm <- oglmx(as.factor(SCARCE) ~ region + wavet + sex + age.s + edu + income + urban + reli2 + …
0
votes
1 answer

Make a percentage table with stargazer

I have data that looks like this, df1: Product Relative_Value Car 0.12651458 Plane 0.08888552 Tank 0.03546231 Bike 0.06711630 Train 0.06382191 Relative_Value is the percentage of the total sell of the product. I use stargazer(df1,…
KGB91
  • 630
  • 2
  • 6
  • 24
0
votes
1 answer

R: robust standard errors into LATEX

I am running some fixed effect regressions with robust stadard errors. And I would like to get them into LATEX format with the stargazer package. Does anyone know how this works in a simple efficient way? My code for the regressions looks like the…
ArOk
  • 193
  • 7
0
votes
2 answers

Different Significance in Stargazer for Standardised/Unstandardised Coefficients

I've performed a multiple linear regression on a large data set using m1 <- lm(y ~ x + x1 + x2..., dataset) added standardised beta coefficients using lm.beta m1_stnd <- lm.beta(m1) and tabulated the results using…
0
votes
0 answers

Making pretty tables with glmmPQL (MASS) and stargazer/texreg/pander

I generated some GLMMs with glmmpql(Guassian log link) from the MASS package, with the output being: PQL_meth_sLL<- glmmPQL(sLL~Temp_fac*State, ~1|Locality/Family, family=gaussian(link="log"), data=adult, verbose=FALSE) > class(PQL_meth_sLL) >> [1]…
Virchu
  • 1
  • 2
0
votes
1 answer

Alternatives for regression output using miEconAids (besides `stargazer`)

I'm looking for a prettier output from estimations using the library micEconAids. stargazer does not seem to work, unless I estimate the equations "by hand" using lm or other regression package for seemingly unrelated equations. Some of the methods…
John Doe
  • 212
  • 1
  • 9
  • 28
0
votes
0 answers

R Stargazer package outlier control creates new lines

I am currently running multiple linear regressions in R and want to summarize them using the Stargazer package. In the regressions I am removing outliers of the respective variables (e.g. outliers of GDP growth, outliers of unemployment rate etc.),…
JPR
  • 13
  • 3
0
votes
3 answers

Drop each Regressor step by step

Is there any chance to specify the full model once and then just to drop regressors one after the other and producing a nice stargazer table with it without having to write every regression line again and again? data <- datasets::airquality #…
BeSeLuFri
  • 623
  • 1
  • 5
  • 21
0
votes
1 answer

Stargazer pulls apart variables when observations dropped

I use stargazer to create a table for multiple models. They are actually the same model but the first is based on all observations, while the other drop different observations respectively. All variables are named the same, so what surprises me is…
Tea Tree
  • 882
  • 11
  • 26
0
votes
0 answers

LaTex Error: Environment table undefined

% Table created by stargazer v.5.2 by Marek Hlavac, Harvard University. E- mail: hlavac at fas.harvard.edu % Date and time: Thu, Feb 01, 2018 - 9:13:45 PM \begin{table}[!htbp] \centering \caption{} \label{}…
mahondogg
  • 23
  • 1
  • 4
0
votes
1 answer

Getting significance stars from a robust regression model using texreg

texreg, by default at least, doesn't place significance stars on the coefficients from a robust linear model fitted using the rlm function from the MASS package. Is there any way to make it? stargazer does, actually, as the following MWE…
DHW
  • 1,157
  • 1
  • 9
  • 24
0
votes
1 answer

Analysis of deviance table model output in HTML

I am trying to export the output of an 'Analysis of deviance table' in HTML format, so that it can be inserted into a word document. I created a GLM model as follows: newmod <- glm(cbind(Recaptured, predated) ~ Morph * Plant * Site, data =…
0
votes
0 answers

Trying to display regression outputs in Rmarkdown in Latex

Hi all! I'm currently working on a paper for my university. The task is to run some regressions on a dataset and compile all results in an rmarkdown file. It should be noted that this is my first time working with R, so if the following question is…
0
votes
1 answer

Number of observations when using plm with first differences

I have a simple issue after running a regression with panel data using plm with a dataset that resembles the one below: dataset <- data.frame(id = rep(c(1,2,3,4,5), 2), time = rep(c(0,1), each = 5), group…
0
votes
2 answers

kable prints stargazer table with multiple lines

I want to print stargazer table using kable. When I am running the code in markdown, I get the stargazer table but with multiple lines with the sign | between those lines before the table. I also get a warning message at the beginning: Warning in…
michal
  • 1
  • 2