Hi all,
I would like to split a group based on it's median value of 38.8.
- Values less than 38.8 = 0
- Values >= 38.8 = 1
When I used sum var, detailed, I looked at the 50% and determined that as median. The same group has also a lot of missing values (100 or so). When using the code "sum", does it include the missing values in its determination of the median?
Also, when I split the group into binary values by code:
- gen var_39 = 1 if RA_reservoir >= 38.85
- replace var_39 = 0 if RA_reservoir < 38.85
I think it includes missing values and assigns a value of 0. How do I tell it to ignore the missing values?
Thank you already!
Rajiv
I would like to split a group based on it's median value of 38.8.
- Values less than 38.8 = 0
- Values >= 38.8 = 1
When I used sum var, detailed, I looked at the 50% and determined that as median. The same group has also a lot of missing values (100 or so). When using the code "sum", does it include the missing values in its determination of the median?
Also, when I split the group into binary values by code:
- gen var_39 = 1 if RA_reservoir >= 38.85
- replace var_39 = 0 if RA_reservoir < 38.85
I think it includes missing values and assigns a value of 0. How do I tell it to ignore the missing values?
Thank you already!
Rajiv

Comment