I want to test if the median of a continuous variable (e.g. height) is the same in two independent groups (boys and girls). For each person there are multiple measurements of the continuous variable at different time points (irregular). So the data looks like:
- Male1: 85, 100, 120, 140
- Male2: 100, 130
- Female1: 120, 125
- Female2: 140, 150, 160
What statistical test can I use?
I thought about U Mann-Whitney Test, but it assumes the observations in a group to be independent, which is not true as the same person is measured multiple times at different ages. Of course I could take a median per person and then apply the test. But I am not sure if this is a good idea.