So the data looks like this at present. The mean column is average hourly wage. The meanann is average annual wage hence the ann at the end. Entry follows the same logic. However, trying to make it look like the intended result below
ID mean meanann entry entryann
32100 100 5200 99 5148
32101 101 5252 100 5200
Intended result
ID mean entry
32100 100 99
32100 5200 5148
32101 101 100
32101 5252 5200
Been using this (https://ademos.people.uic.edu/Chapter8.html) as a teaching tool but not finding anything that does it as such. I know that you would do a melt and specify your ID variables but the issues is that it stacks all of my mean observations first and then all of the meanann and so on.