I am estimating many models using the fixest
package.
I want to use etable
to export these models into a sidewaystable
in latex: does anyone knows how I can do it?
Here is an example
library(fixest)
iris <- iris
m1 <- feols(Sepal.Length~Sepal.Width|Species,data = iris)
m2 <- feols(Sepal.Length~Sepal.Width+Petal.Length|Species,data = iris)
m3 <- feols(Sepal.Length~Sepal.Width+Petal.Length+Petal.Width|Species,data = iris)
m4 <- feols(Sepal.Length~Sepal.Width+Petal.Length+Petal.Width+Petal.Width*Petal.Length|Species,data = iris)
m5 <- feols(Sepal.Length~Sepal.Width+Petal.Length+Petal.Width+Sepal.Width*Petal.Width|Species,data = iris)
m6 <- feols(Sepal.Length~Sepal.Width+Petal.Length+Petal.Width+Petal.Width*Petal.Length+Sepal.Width*Petal.Width|Species,data = iris)
m7 <- feols(Sepal.Width~Sepal.Length|Species,data = iris)
m8 <- feols(Sepal.Width~Sepal.Length+Petal.Length|Species,data = iris)
m9 <- feols(Sepal.Width~Sepal.Length+Petal.Length+Petal.Width|Species,data = iris)
m10 <- feols(Sepal.Width~Sepal.Length+Petal.Length+Petal.Width+Petal.Width*Petal.Length|Species,data = iris)
m11 <- feols(Sepal.Width~Sepal.Length+Petal.Length+Petal.Width+Sepal.Length*Petal.Width|Species,data = iris)
m12 <- feols(Sepal.Width~Sepal.Length+Petal.Length+Petal.Width+Sepal.Length*Petal.Length+Sepal.Length*Petal.Width|Species,data = iris)
etable(m1,m2,m3,m4,m5,m6,m7,m8,m9,m10,m11,m12,
title="Table with many models",
fitstat = ~n+ar2,
fontsize = "footnotesize",
tex = TRUE,file="mytable.tex",replace=T)
The output is a table that does not fit into the page, so I would like to create a sidewaystable
table in latex.
Bonus question: is there a way I can change the name of the dependent variable at the top of the model?