Dear Statalist,
I am a new member but browsing through your discussions has been a great help many times. Now I have a question myself:
I wish to count how many of say 300 patients that have two (or three or four…) elevated values in their blood cell counts (among 10 different blood cells) irrespective of which two (three/four/…) blood cells that are elevated.
So, I am looking for an elegant solution in Stata that says:
“count if any two/three/… of the following clauses are met”, and then you can list a number of different clauses like: “(bloodcell1>25 & bloodcell1<.) | (bloodcell2>.1 & bloodcell2<.) | (bloodcell3>800 & bloodcell3 <.) | ...”
It will be a very long and tedious task to write “count if …” for all possible combinations but is that the only way…?
Thank you in advance.
Sabrina
I am a new member but browsing through your discussions has been a great help many times. Now I have a question myself:
I wish to count how many of say 300 patients that have two (or three or four…) elevated values in their blood cell counts (among 10 different blood cells) irrespective of which two (three/four/…) blood cells that are elevated.
So, I am looking for an elegant solution in Stata that says:
“count if any two/three/… of the following clauses are met”, and then you can list a number of different clauses like: “(bloodcell1>25 & bloodcell1<.) | (bloodcell2>.1 & bloodcell2<.) | (bloodcell3>800 & bloodcell3 <.) | ...”
It will be a very long and tedious task to write “count if …” for all possible combinations but is that the only way…?
Thank you in advance.
Sabrina
Comment