Hi all,
I am trying to graph the mean of net transfer per household by age and the foreigner dummy.
Age (age) is defined already and HH net transfer is defined as follows
Code:
bysort hid: gen hhgba=(hhcont_tot - hincpubtransfersY)
I expect the two way graph to be similar to this one below. I think one of the ways is using the separate and collapse command for this but I have issues defining it properly. Thank you!

Array