stargazer

R: Robust SE's and model diagnostics in stargazer table

烈酒焚心 提交于 2019-11-29 03:29:26
问题 I try to put some 2SLS regression outputs generated via ivreg from the AER package into a Latex document using the stargazer package. I have a couple of problems however that i can't seem to solve myself. 1. I can't figur out on how to insert model diagnostics as provided by the summary of ivreg. Namely weak instruments tests, Wu-Hausmann and Sargan Test. I would like to have them with the statistics usually reported underneath the table like number of observations, R squared, and Resid. SE.

Odds ratios instead of logits in stargazer() LaTeX output

牧云@^-^@ 提交于 2019-11-29 02:44:47
问题 When using stargazer to create a LaTeX table on a logistic regression object the standard behaviour is to output logit-values of each model. Is it possible to get exp(logit) instead? That is, can i get the Odds-ratios instead? In the stargazer documentation the following mentions the "Coef"-argument, but I dont understand if this can enable the exp(logits). Coef: a list of numerical vectors that will replace the default coefficient values for each model. Element names will be used to match

Using stargazer with Rstudio and Knitr

被刻印的时光 ゝ 提交于 2019-11-27 13:18:05
I'm struggling to use stargazer output in knitr, using RStudio. For example, I paste the code below into a .Rmd file, then click Knit HTML. The first block between [ and ] is rendered as equations. The second block is from stargazer. It remains as code. When I paste the second block, less [ and ], into a Sweave file and then click compile as PDF, the code renders as a table. I have MikTex installed and version 3 of Stargazer. The answer inserting stargazer or xable table into knitr document works for me in a Sweave file (Rnw) when clicking compile PDF. In an Rmd file, the tex is not rendered

Stargazer output appears below text - rmarkdown to pdf

时光毁灭记忆、已成空白 提交于 2019-11-27 07:28:38
问题 The Problem When using rmarkdown in RStudio, my stargazer(glm()) output gets positioned below the text that I would like it to. It gets positioned in a different spot than the r chunk is. The PDF is created perfectly, it's just the position of the stargazer output that is a problem. Background I am trying to create a PDF with lots of text and a couple of stargazer glm() output between a few of the paragraphs. When I put more than one stargazer() output in my rmarkdown file and then "Knit" to

Print “pretty” tables for h2o models in R

五迷三道 提交于 2019-11-27 04:34:25
There are multiple packages for R which help to print "pretty" tables (LaTeX/HTML/TEXT) from statistical models output AND to easily compare the results of alternative model specifications. Some of these packages are apsrtable , xtable , memisc , texreg , outreg , and stargazer (for examples see here: https://www.r-statistics.com/2013/01/stargazer-package-for-beautiful-latex-tables-from-r-statistical-models-output/ ). Is there any comparable R package that does support the models of the h2o package? Here is an example of two simple GLM models with h2o which I like to print beside each other as

How do I add confidence intervals to odds ratios in stargazer table?

馋奶兔 提交于 2019-11-27 02:31:23
问题 I am trying to create a table of a multivariable logistic regression model using stargazer . I would like to include odds ratios and their confidence intervals instead of the model coefficients. I figured out how to replace the coefficients with the odds ratios, thanks to this link but doing the same with the CI creates problems. If I give stargazer an argument like se = *a list of the standard errors or exp(standard errors)* it calculates the CI using the OR +/- 1.96 times that list, which

Using stargazer with Rstudio and Knitr

房东的猫 提交于 2019-11-26 18:16:33
问题 I'm struggling to use stargazer output in knitr, using RStudio. For example, I paste the code below into a .Rmd file, then click Knit HTML. The first block between [ and ] is rendered as equations. The second block is from stargazer. It remains as code. When I paste the second block, less [ and ], into a Sweave file and then click compile as PDF, the code renders as a table. I have MikTex installed and version 3 of Stargazer. The answer inserting stargazer or xable table into knitr document

Print “pretty” tables for h2o models in R

这一生的挚爱 提交于 2019-11-26 11:15:43
问题 There are multiple packages for R which help to print \"pretty\" tables (LaTeX/HTML/TEXT) from statistical models output AND to easily compare the results of alternative model specifications. Some of these packages are apsrtable , xtable , memisc , texreg , outreg , and stargazer (for examples see here: https://www.r-statistics.com/2013/01/stargazer-package-for-beautiful-latex-tables-from-r-statistical-models-output/). Is there any comparable R package that does support the models of the h2o