I am formatting regression tables which are being produced by esttab and then moved into a LaTeX environment. I have two questions:
1. I want to use refcat to create category headings for my variables. The current syntax runs with no errors in Stata and imports without an error in LaTex, but the formatting isn't visible. The desired effect is something that looks like the following:
Child Age (months)
indent here 12-23
indent here 24-35
indent here 36-59
indent here 48-59
I'm currently using the following syntax:
An image of the resulting output is attached.
2. How do I use esttab effectively to a)drop the reference categories and b) the fields that I don't want to use. For example, '99'.
I tried the following:
1. I want to use refcat to create category headings for my variables. The current syntax runs with no errors in Stata and imports without an error in LaTex, but the formatting isn't visible. The desired effect is something that looks like the following:
Child Age (months)
indent here 12-23
indent here 24-35
indent here 36-59
indent here 48-59
I'm currently using the following syntax:
Code:
quietly svy: logistic fail i.treat2 c.MEI2 c.MEI2#i.treat2 i. female i.mon_age_bin i.v127 i.v149 i.rural i.amp i.year2 i.ADM1_CODE i.year2#i.ADM1_CODE est store A quietly svy, subpop(urban): logistic fail i.treat2 c.MEI2 c.MEI2#i.treat2 i. female i.mon_age_bin i.v127 i.v149 i.amp i.year2 i.ADM1_CODE i.year2#i.ADM1_CODE est store B quietly svy, subpop(rural): logistic fail i.treat2 c.MEI2 c.MEI2#i.treat2 i. female i.mon_age_bin i.v127 i.v149 i.amp i.year2 i.ADM1_CODE i.year2#i.ADM1_CODE est store C foreach v of varlist * { label variable `v' `"\hspace{0.1cm} `: variable label `v''"' } esttab A B C using "Y:\DolanChapter_5\Analysis\Stata Output\Final Analysis\TableA.tex", replace /// nobaselevels longtable eform label booktabs star(* 0.10 ** 0.05 *** 0.01) /// title("Main results from child-level logistic model") mtitle("Combined" "Urban" "Rural") /// refcat(2"\emph{Age}")
2. How do I use esttab effectively to a)drop the reference categories and b) the fields that I don't want to use. For example, '99'.
I tried the following:
Code:
drop [_cons] drop [gender*] drop [_I*]
Comment