'Stargazer(): Create covariate labels with exponent?
I want to use stargazer() to create a table of the coefficients of three regressions. I have to rename the independent variables of the regressions and the variable names include exponents. Is there a way to add exponents to the argument covariate.labels of the stargazer() function?
I tried the following code, but it did not work:
lb1 = expression(paste("D"^"AfD"))
lb2 = expression(paste("D"^"SPD-Reg."))
lb3 = expression(paste("D"^"CDU-Reg."))
lb4 = expression(paste("D"^"GroKo"))
lb5 = expression(paste("D"^"CDU-Amtszeit"))
lb6 = expression(paste("D"^"SPD-Amtszeit"))
label1 = c(lb1,lb2,lb3,lb4,lb5,lb6)
stargazer(MRBE,MLBE,RPBE, type = "html",covariate.labels = c(lb1,lb2,lb3,lb4,lb5,lb6),
title = "Saisonbereinigung",out="table1.html",dep.var.labels = c("Reg1","Reg2","Reg3"))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|