I am having trouble using two macros in a loop. Here's what I'm trying.
I set these macros:
And I try the following graphs for ages 1 to 4
The text I want in the subtitle (Age Zero, Age 15-19, etc.) isn't showing up. Any ideas about how to fix this? Thank you in advance.
I set these macros:
Code:
local sub1 Zero local sub2 15-19 local sub3 50-54 local sub4 80-84
Code:
foreach age in 1 2 3 4{
twoway ..., ///
subtitle(Age `sub`age'') saving(`age', replace) ...
}

Comment