Hellow SAS community, After merging several data sets I have a data set like this: id day age distance gender 1 1 21 2 F 1 2 . 0 . 1 3 . 0 . 1 4 21 5 F 1 5 21 1 F 2 1 43 2 M 2 2 43 2 M 2 3 . 0 . 2 4 43 3 M 2 5 . 0 . 3 1 24 5 F 3 2 24 5 F 3 3 24 5 F 3 4 24 5 F 3 5 . 0 . 4 1 18 2 M 4 2 . 0 . 4 3 . 0 . 4 4 . 0 . 4 5 . 0 . 5 1 36 10 M 5 2 36 8 M 5 3 36 8 M 5 4 36 9 M 5 5 36 7 M Basically the day a person doesn't run, I create a new observation with Distance = 0. However, my merge ended up that I have lots of missing data in all of the rest variables except id and day. How could I add data back to the missing cell where we can infer information from other cells: for example, id 1 is Female (F) by looking at day 1, 4, 5, so day 2, 3 we know that the person with id 1 is Female (F). Please share what you think can help me solve this issue
... View more