Hello,
I am using esttab to export some summary statistics table to latex but I cannot figure out to how to get the tex output to contain variable names. I can see only variable labels but not the variable names. Can someone please advise how to get the variable names to show in the tex output?
Currently it looks like this:
and i want it to look like this:
My current code is:
eststo test1: proportion Age Gender [pw=weight]
estadd summ
esttab test1 using test1, tex cells("mean(fmt(2)) sd(fmt(2)) min(fmt(0)) max(fmt(0))") ///
replace title({\b Table 1.}Summary statistics) nonumbers mtitles(" ") ///
addnote(Note: All figures are weighted.)
Thank you in advance for your time!
I am using esttab to export some summary statistics table to latex but I cannot figure out to how to get the tex output to contain variable names. I can see only variable labels but not the variable names. Can someone please advise how to get the variable names to show in the tex output?
Currently it looks like this:
mean | sd | min | max | |
from 12 to 15 y.o. | 0,33 | ... | 0 | 1 |
from 16 to 21 y.o. | 0,33 | ... | 0 | 1 |
from 22 to 30 y.o. | 0,33 | ... | 0 | 1 |
female | 0,48 | ... | 0 | 1 |
male | 0,52 | ... |
and i want it to look like this:
mean | sd | min | max | |
Age | ||||
from 12 to 15 y.o. | 0,33 | ... | 0 | 1 |
from 16 to 21 y.o. | 0,33 | ... | 0 | 1 |
from 22 to 30 y.o. | 0,33 | ... | 0 | 1 |
Gender | ||||
female | 0,48 | ... | 0 | 1 |
male | 0,52 | ... |
My current code is:
eststo test1: proportion Age Gender [pw=weight]
estadd summ
esttab test1 using test1, tex cells("mean(fmt(2)) sd(fmt(2)) min(fmt(0)) max(fmt(0))") ///
replace title({\b Table 1.}Summary statistics) nonumbers mtitles(" ") ///
addnote(Note: All figures are weighted.)
Thank you in advance for your time!
Comment