Dear Statalist,
I am doing a twoway tab between an education variable = {1,2,3,4} and a bnary variable. I want the row percentages for binary_variable==1.
This is my code:
estimates clear
estpost tab educ missjob if tem==2, nototal
eststo tem0
estpost tab educ missjob if tem==1, nototal
eststo tem1
esttab tem0 tem1 using "$OUT/Table_1'.tex", replace unstack booktabs ///
cell(rowpct(fmt(2))) varlabels(`e(labels)') ///
eqlabels(`e(eqlabels)') nonum collabels(none) ///
mtitle("Without permit" "With permit")
but I only want a table with 2 columns, like this:
I am doing a twoway tab between an education variable = {1,2,3,4} and a bnary variable. I want the row percentages for binary_variable==1.
This is my code:
estimates clear
estpost tab educ missjob if tem==2, nototal
eststo tem0
estpost tab educ missjob if tem==1, nototal
eststo tem1
esttab tem0 tem1 using "$OUT/Table_1'.tex", replace unstack booktabs ///
cell(rowpct(fmt(2))) varlabels(`e(labels)') ///
eqlabels(`e(eqlabels)') nonum collabels(none) ///
mtitle("Without permit" "With permit")
but I only want a table with 2 columns, like this:
Comment