stargazer

Stargazer: changing line style

混江龙づ霸主 提交于 2021-01-28 17:43:31
问题 Is is possible to change line style in stargazer table in Rstudio, or does one need to change if "by-hand" in latex source code: for example: library(stargazer) library(dplyr) mtcars[1:10, ] %>% stargazer(type = "text", summary = F) if I want last line to be double line, do I have to change it in latex code or can it be done in Rstudio? 来源: https://stackoverflow.com/questions/60636700/stargazer-changing-line-style

Stargazer for ARDL package's output: 'Error: Unrecognized object type'

守給你的承諾、 提交于 2021-01-28 11:25:35
问题 So ARDL package in R implements dynlm which is an accepted input in stargazer as per this question and answer. However, I am unable to get stargazer table from ardl or auto_ardl . It throws the unrecognized object type error. Is there a way out of this? Here's a reproducible example: set.seed(10) library(ARDL) library(stargazer) x=rnorm(100,mean = 5,sd=2) y=rnorm(100,mean = 7,sd=3) df=cbind(x,y) model1=auto_ardl(y~x,data = df,max_order = 4) class(model1) [1] "list" stargazer(model1) % Error:

Stargazer column on multiple lines *with multiple models*?

拜拜、爱过 提交于 2021-01-24 15:06:43
问题 Similar question as Getting Stargazer Column labels to print on two or three lines?. I have long model titles that I would like to print on several lines while showing the results for multiple models . Unfortunately, the answer to the other question does not work in this case. var1<-rnorm(100) var2<-rnorm(100) df<-data.frame(var1, var2) mod<-lm(var1~var2) library(stargazer) stargazer(mod, mod, column.labels=c('my models\\\\ & need long titles', 'my models\\\\ & need long titles')) yields

Stargazer column on multiple lines *with multiple models*?

♀尐吖头ヾ 提交于 2021-01-24 15:03:23
问题 Similar question as Getting Stargazer Column labels to print on two or three lines?. I have long model titles that I would like to print on several lines while showing the results for multiple models . Unfortunately, the answer to the other question does not work in this case. var1<-rnorm(100) var2<-rnorm(100) df<-data.frame(var1, var2) mod<-lm(var1~var2) library(stargazer) stargazer(mod, mod, column.labels=c('my models\\\\ & need long titles', 'my models\\\\ & need long titles')) yields