I have a panel data set. The observations are conditionally sorted on two dimensions. I sorted observations into quartiles by variable A, and then conditionally sorted the observations into quartiles by variable B within the variable A quartiles, yielding 16 groups.
I calculated the mean and median of my Y variable for each group. Then I calculated the difference in means and medians between firms in the highest and lowest variable A quartiles (for each Variable B quartile). Now I want to test whether the differences in means and medians that I just calculated are significantly different in the highest and lowest variable B quartiles.
So essentially it is a univariate diff-in-diff test. I was able to do this for the means, but I can't figure out how to do it for the medians. Does anyone know?
I calculated the mean and median of my Y variable for each group. Then I calculated the difference in means and medians between firms in the highest and lowest variable A quartiles (for each Variable B quartile). Now I want to test whether the differences in means and medians that I just calculated are significantly different in the highest and lowest variable B quartiles.
So essentially it is a univariate diff-in-diff test. I was able to do this for the means, but I can't figure out how to do it for the medians. Does anyone know?
Comment