Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Two-way graph using "Separate" and "Collapse"

    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!

    Click image for larger version

Name:	image_24621.png
Views:	1
Size:	24.8 KB
ID:	1635515
    Last edited by Hend She; 08 Nov 2021, 13:17.

  • #2
    I forgot to mention that I would like to have it based on weighted data.

    Comment

    Working...
    X