100040002 1 Hepatic 0 CT scan with contrast 100040002 4 Breast 19 CT scan with contrast 100050001 2 Lung 0 CT scan with contrast 100050001 3 Adrenal Gland 2 CT scan with contrast 100060001 1 Lymph Node 0 CT scan with contrast 100060001 1 Lymph Node 2 CT scan with contrast 100060001 3 Skin Of The 16 Clinical exam 100090001 2 Lymph Node 0 CT scan with contrast 100090001 1 Bone 7 MRI 100090002 1 Lymph 0 CT scan with contrast 100090002 1 Lymph 2 CT scan with contrast 100090002 2 Pericardium 10 Ultrasound I have dataset with 5 Variables ID,A,B,VISIT and METHOD. When A AND B are not missing, Method variable should be consistent across the visits for a particular id. If METHOD is not consistent across the visits we should pull out those records where Method is not same as the previous visit for a particular id. In the above table, The yellow records are correct and we should pull out the discrepancies marked in Red. Thanks
... View more