I'm doing secondary data analysis of a survey and the height data I need to calculate BMI is not very clean. The data is entered in 3 columns depending on how the survey participants elected to enter it (this part of the survey was self-completed). The columns are cm, feet, inches. The cm column is fine, and about half the people who entered their height in imperial managed to correctly put the feet and inches in the separate columns. The other participants have entered their height in feet and inches just in the feet column ie 5.8, 6.1 etc. I'd like to use their data obviously, but I need some way of splitting the inches off the feet and getting them into the correct column. I've tired split var, p(.) but that didn't work as it is numeric. Suggestions gratefully received.
-
Login or Register
- Log in with
Comment