ID Visit Test res 1001 Screen Height 170 1001 Screen Weight 82 1001 Screen Height 1001 Screen Weight 82 1001 Day 1 Height 170 1001 Day 1 Weight 89 1001 Day 1 Height 170 1001 Day 1 Weight 1002 Screen Height 180 1002 Screen Weight 95 1002 Day 1 Height 180 1002 Day 1 Weight 95 How to get Height and Weight per visit and get them multiple times if they are different as below: ID 1001 taking the non missing value for height. for weight taking non missng value but the weights are different on screen and day1 visits so we get 3 records. ID 1002 ,height and weight are same during screen and day 1 so we get two records: ID Visit Test res 1001 Screen Height 170 1001 Screen Weight 82 1001 Day 1 Weight 89 1002 Screen Height 180 1002 Screen Weight 95
... View more