Dear all,
Is there a way to achieve what the following code produces:
Without having to write all the possible values of race? Something like:
But producing one graph instead of four?
Thank you!
Is there a way to achieve what the following code produces:
Code:
use https://stats.idre.ucla.edu/stat/stata/notes/hsb2, clear twoway (scatter read write if race == 1) /// (scatter read write if race == 2) /// (scatter read write if race == 3) /// (scatter read write if race == 4)
Code:
twoway (scatter read write), by(race)
Thank you!
Comment