Dear all,


my data structure looks like this.
good 1 price 1 good 2 price 2 etc.
milk 43 egg 43 ..
egg 53 milk 22 ...
egg 21 coffee 4 ...
coffee 10 bread 55 ...
I was wondering how I can calculate the median for different goods picking the observations without having to reshape?

Thank you!