Can somebody please advise me on the most straightforward way to recode a variable with data from a different variable?
My problem is that I have a height variable that has about 700 missing values. However, I also have an imputed height variable that I'd like to use to get rid of the missing information on the height variable.
This is what I see when run the following command:
Code:
list height imputed_height if height>300 +-------------------+ | height impute~t | |-------------------| 16. | 999.9 172.9 | 19. | 999.9 165.3 | 23. | 999.9 173.6 | 31. | 999.9 160.8 | 39. | 999.9 168.5 | |-------------------| 40. | 999.9 165.3 | 77. | 999.9 171.5 | 78. | 999.9 152 | 79. | 999.9 163.4 | 81. | 999.9 170.3 | |-------------------| 82. | 999.9 167 | 83. | 999.9 167.5 | 84. | 999.9 152.4 | 85. | 999.9 161.7 | 86. | 999.9 169.4 | |-------------------| 87. | 999.9 170.8 | 88. | 999.9 174.2 | 89. | 999.9 180.8 | 90. | 999.9 171.1 | 92. | 999.9 166.4 |
Thanks in advance.
0 Response to Recoding a variable with data from another variable
Post a Comment