I am looking to run descriptive statistics (frequencies) on a large data set. However, I have identified some likely erroneous entries which I would like to exclude first.
I would like to exclude individuals who do not have an illness, but are taking medication for it. In other words, those who are illness-free but take medication for the illness anyway.
I am struggling to find a way to do this and would greatly appreciate any advice.