Dear all,
I have a overlaying kdensity plot of which the codes are given below. Is there anyway to make it through a loop instead typing the command line for each "visit". I need to make 16 for each gender, therefore, a loop will be very useful and efficient approach.
Many thanks in advance for your help.
Best,
I have a overlaying kdensity plot of which the codes are given below. Is there anyway to make it through a loop instead typing the command line for each "visit". I need to make 16 for each gender, therefore, a loop will be very useful and efficient approach.
Many thanks in advance for your help.
Code:
twoway (kdensity y if visit==5 & gender==1) || /// (kdensity y if visit==6 & gender==1) || /// (kdensity y if visit==7 & gender==1)
Comment