Hello Stata members,
I have a dataset with vars (IDs, Disease name, Lab test name, lab test result, and lab status such as (pending, rejected, and final))
I want to flag those IDs whose requests are still pending uniquely, however, the problem is in the lab status where each row has multiple lab statuses ex (pending, pending, rejected, finely, and final) That is because each ID has multiple tests.
For your assistance !

I have a dataset with vars (IDs, Disease name, Lab test name, lab test result, and lab status such as (pending, rejected, and final))
I want to flag those IDs whose requests are still pending uniquely, however, the problem is in the lab status where each row has multiple lab statuses ex (pending, pending, rejected, finely, and final) That is because each ID has multiple tests.
For your assistance !
Comment