Hi there, I have a data set with about 50k records with multiple survey records per person. I want to xfill on key variables (demographics and other characteristics). However, there are inconsistencies (e.g., person A completes 3 surveys, one time they live in GA the next time they live in FL, and the third time they don't answer the question). The xfill command won't execute when the data are inconsistent by id. I developed a workaround (reshaping the data to wide and looking across rows to fill using loops) but it's clunky. Is there another way to achieve this? Thanks!
-
Login or Register
- Log in with
Comment