Hi, I am working with panel data and want to create a dummy variable based on the median of each cross section for the entire sample and also at each time period. How do I do that?