I have the gender composition for thousands of boards (there is no sampling involved. The data set contains all boards). Boards are consisted of different number of male and female directors. So, to fix things, boards are clusters, and within each cluster there are two groups of male and female directors. What I want to do is to examine how older the median male director in each board is than the median female director in that board, to estimate a confidence interval for this difference, and to comment on its significance by bootstrapping. My question is on how this should be tackled. more specifically:
I guess, as I stated, it is the difference in medians which needs to be calculated in here, and not the median of differences, correct? This is as, the male and female directors are nested in each board and are thus should be compared within boards.
Would report the median of these difference in medians then? or can I use mean of difference in medians?
Suppose that I have ended up with 1000 difference in medians. What I need to do, is to resample with replacement 1000 rounds, samples of size 1000 from the original 1000 observations, and in each round save the median, and finally to report the .05 and .95 quantiles as the confidence interval. Correct?
Though the data has nested structure, it doesn't matter for my bootstrapping, in other words, I don't need to resample directors in boards, correct?