Dear Stata users,
I have two variables of male and female. For variable male, it has missing value in every even position. For variable female, it has missing value in every odd position. I want to get a data that delete all missing value in male and female, and at the same time, allow the two variables be juxtaposed. I had supposed it is an easy task, however I can't find a solution. Thank you very much.
I have two variables of male and female. For variable male, it has missing value in every even position. For variable female, it has missing value in every odd position. I want to get a data that delete all missing value in male and female, and at the same time, allow the two variables be juxtaposed. I had supposed it is an easy task, however I can't find a solution. Thank you very much.
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(male female)
42208 .
. 37775
293543 .
. 260119
348331 .
. 290133
324226 .
. 270798
303669 .
. 273668
230968 .
. 218585
end
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(male female) 42208 37775 293543 260119 348331 290133 324226 270798 303669 273668 230968 218585 end

Comment