Hello everyone,
I want to see the division of variable2 based on the median of another variable1.
But first, to find the median of variable1, I use this code:
egen median= median (variable1)
but when I use :count if variable1<= median, I find 1 114 observations
When I use count if variable1> median, I find 1 101 observations
Aren't the observations suppose to be equal?
thank you,
I want to see the division of variable2 based on the median of another variable1.
But first, to find the median of variable1, I use this code:
egen median= median (variable1)
but when I use :count if variable1<= median, I find 1 114 observations
When I use count if variable1> median, I find 1 101 observations
Aren't the observations suppose to be equal?
thank you,
Comment