I have a database with different products per city. They are listed as single observations. Instead, I want it to be like an observation that compares two products in different cities. My actual database looks as follows:
Date Product Market Price
A X H 10
A X I 5
A X J 7
And I want it to look like this:
Date Product Market1 Market2 Price1 Price2
A X H I 10 5
A X H J 10 7
A X I J 5 7
Thanks!