Hello all,
I am referencing this older thread http://www.statalist.org/forums/foru...37#post1328437 that provides a solution to creating a transposed table (independent and dependent variables switched)
I would like to display variable labels instead of variable names in a output table, using estab and estout. In other words: the code below outputs a table with rows titled "Route1", "Route2" etc. Instead, these rows should automatically display the respective variable label. (The second part of the question is likely going to output the same table to a .tex (Latex) format).
Thank you in advance for any suggestions!
I am referencing this older thread http://www.statalist.org/forums/foru...37#post1328437 that provides a solution to creating a transposed table (independent and dependent variables switched)
I would like to display variable labels instead of variable names in a output table, using estab and estout. In other words: the code below outputs a table with rows titled "Route1", "Route2" etc. Instead, these rows should automatically display the respective variable label. (The second part of the question is likely going to output the same table to a .tex (Latex) format).
Thank you in advance for any suggestions!
Code:
sysuse auto, clear eststo clear matrix drop _all levelsof rep78, local(levelrep78) di "`levelsrep78'" foreach l of local levelrep78 { di "rep78: `l'" capture noisily reg p turn head if rep78==`l' eststo Route`l', title(`""`levrep'""') loc titl `"`titl' "`levrep'""' } esttab using r, p scalars(F df_m df_r) keep( turn ) replace mat list r(coefs) mat rename r(coefs) foo mat list foo esttab matrix(foo, transpose) using filename, replace estout mat(foo, fmt(3 3) transpose) using Table4.tex, label replace style(tex) collabels(none)
Comment