Stata Code for Data Cleaning
Budget: $10 – $30 USD
I have a dataset of approximately 7600 observations. I have two variables that I need to know the highest and lowest value of each. The data is a state's relative trade exposure (bilateral trade/GDP) to the other state. I need two variables created using a foreach loop. One variable would have the highest value between the two states, while the other variable would have the lowest value between the two states.