Hello everyone,
I have panel data that look like this (this is a subsample, it contains more years, more groups and more id per group)
I want to draw a graph where Y is the value and the X is the year and:
Each group is represented in a subgraph
In each group, overlaid plots if characteristic == "life"
I have tried using xtline, but it does not allow for by(), so I have noway of dividing into subgraphs per group.
Thank you in advance
I have panel data that look like this (this is a subsample, it contains more years, more groups and more id per group)
| Year | Group | id | characteristic | value |
| 2016 | A | a1 | life | 2 |
| 2016 | A | a2 | nl | 5 |
| 2016 | A | a3 | re | 3,5 |
| 2017 | A | a1 | life | 3 |
| 2017 | A | a2 | nl | 2,5 |
| 2017 | A | a3 | re | 4 |
| 2016 | B | b1 | life | 1,5 |
| 2016 | B | b2 | life | 2 |
| 2016 | B | b3 | re | 3,6 |
| 2017 | B | b1 | life | 2,5 |
| 2017 | B | b2 | life | 3,6 |
| 2017 | B | b3 | re | 4 |
Each group is represented in a subgraph
In each group, overlaid plots if characteristic == "life"
I have tried using xtline, but it does not allow for by(), so I have noway of dividing into subgraphs per group.
Thank you in advance

Comment