Dear all,
I have a snippet of my panel
Ofcourse my full panel has N=30 and T=5 .
I want to find the mean values of y by Cat1, up to Cat4, when each Cat takes the value of 1. And then I want to plot in one graph these mean values of y against the X axis that will contain the labels Cat1,..., Cat4.
Is that possible to do that in Stata?
If it is not clear, please let me know!
Many thanks in advance!
I have a snippet of my panel
id | Year | y | Cat1 | Cat2 | Cat3 | Cat4 |
1 | 2000 | 45 | 1 | 0 | 0 | 0 |
1 | 2001 | 56 | 1 | 0 | 0 | 0 |
1 | 2002 | 23 | 1 | 0 | 0 | 0 |
1 | 2003 | 56 | 1 | 0 | 0 | 0 |
1 | 2004 | 45 | 1 | 0 | 0 | 0 |
2 | 2000 | 45 | 0 | 1 | 0 | 0 |
2 | 2001 | 90 | 0 | 1 | 0 | 0 |
2 | 2002 | 35 | 0 | 1 | 0 | 0 |
2 | 2003 | 79 | 0 | 1 | 0 | 0 |
2 | 2004 | 32 | 0 | 1 | 0 | 0 |
Ofcourse my full panel has N=30 and T=5 .
I want to find the mean values of y by Cat1, up to Cat4, when each Cat takes the value of 1. And then I want to plot in one graph these mean values of y against the X axis that will contain the labels Cat1,..., Cat4.
Is that possible to do that in Stata?
If it is not clear, please let me know!
Many thanks in advance!
Comment