I am trying to figure how to repeat the tab command for several IVs (Age, area, education, wealth) using the same DV (Child.dead). This could save a lot of time when there are many IVs. I guess the solution is to use the "foreach" which I'm struggling to put in use.
Thanks in advance for your insight!
[CODE]
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(Child_dead Age Urban_rural Eduction Wealth_quintile) 0 3 1 1 1 1 3 1 1 3 0 5 1 1 1 0 2 1 3 1 0 1 1 3 1 0 2 1 4 2 0 2 1 1 1 1 3 1 1 2 0 2 1 1 1 0 5 1 1 4 0 1 1 3 4 0 2 1 4 4 0 3 1 1 4 0 6 1 1 1 0 1 1 3 1 0 7 1 2 2 0 1 1 3 2 0 1 1 2 2 0 4 1 1 1 0 1 1 1 1 0 3 1 1 2 0 6 1 1 1 0 1 1 2 1 0 1 1 1 1 1 3 1 1 2 0 2 1 3 2 0 6 1 1 3 0 1 1 3 3 1 4 1 1 2 1 6 1 1 2 0 4 1 2 4 0 4 1 1 4 0 2 1 3 5 0 3 1 4 5 1 4 1 2 5 0 2 1 2 5 0 4 1 4 5 0 3 1 4 5 0 6 1 2 5 0 1 1 1 5 0 1 1 4 5 0 2 1 2 4 0 3 1 3 4 0 5 1 2 4 0 2 1 3 4 0 5 1 3 4 0 5 1 2 5 0 4 1 3 5 0 1 1 3 5 0 2 1 4 5 1 2 1 1 5 0 3 1 2 5 0 6 1 1 5 0 1 1 3 5 0 2 1 1 5 0 4 1 1 5 0 1 1 2 4 0 5 1 1 4 0 3 1 1 5 0 3 1 1 5 1 3 1 1 5 1 4 1 1 4 0 7 1 1 4 0 2 1 2 4 0 4 1 1 5 0 6 1 1 5 0 1 1 3 5 0 1 1 3 5 1 2 1 3 5 0 3 1 3 3 0 2 1 1 5 0 2 1 3 5 0 4 1 1 4 0 4 1 1 4 0 1 1 2 5 0 2 1 3 5 0 7 1 2 5 0 1 1 2 5 0 1 1 3 5 0 2 1 3 5 0 3 1 1 5 0 3 1 1 5 0 6 1 1 4 0 4 1 1 4 0 3 1 3 5 0 1 1 3 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