Hello. I'm making a descriptive table using estpost and esttab commands. I have different variables to tabulate, but the categories remain the same for each one of them.
I'm doing it in the following manner:
When I'm tabulating for the second variable, I want the output in the second column of 1.rtf. How can I do that?
I'm specifying the append option, but it's not giving me the way I want it.
Example dataset:
Thanks
I'm doing it in the following manner:
Code:
estpost tab dm_earnings if women_IR==1 & marital==2 [iw=wgt]
Code:
esttab using 1.rtf, replace title(Table 1: Percent distribution of decision-making pattern among currently married women) mtitle(Own_earnings) nonumber varwidth(26) nonote
I'm specifying the append option, but it's not giving me the way I want it.
Code:
estpost tab dm_healthcare if women_IR==1 & marital==2 [iw=wgt]
Code:
esttab using 1.rtf, append mtitle(Own_healthcare)
Example dataset:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(dm_visits_family_relatives dm_healthcare) 3 3 2 3 2 2 2 2 2 2 2 2 2 2 2 2 3 3 2 2 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 2 2 2 2 1 1 2 2 2 2 3 3 2 2 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 2 2 2 2 2 2 2 2 3 3 2 2 2 2 2 3 1 3 3 3 2 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 2 2 2 2 3 3 3 2 3 2 3 2 2 2 3 end label values dm_visits_family_relatives lab_dm_visits_family_relatives label def lab_dm_visits_family_relatives 1 "Woman alone", modify label def lab_dm_visits_family_relatives 2 "Jointly with husband", modify label def lab_dm_visits_family_relatives 3 "Husband alone/someone else", modify label values dm_healthcare lab_dm_healthcare label def lab_dm_healthcare 1 "Woman alone", modify label def lab_dm_healthcare 2 "Jointly with husband", modify label def lab_dm_healthcare 3 "Husband alone/someone else", modify
