steno-aarhus / legliv

Substitution of red meat with legumes and risk of primary liver cancer in UK Biobank participants: A prospective cohort study
MIT License
0 stars 0 forks source link

fix: :bug: contain the correct logic for the filter functions #20

Closed lwjohnst86 closed 3 months ago

lwjohnst86 commented 3 months ago

This may change your results. The logic in these filter conditions were not clear so maybe filter didn't filter as you might have expected. I interpreted your logic, in for example the sex conditions, as "one sex by one condition OR the other sex by another condition". If that is correct, you need to include the () around the sex by condition logic.

nielsbock commented 3 months ago

All of these functions are actually deprecated... I've forgotten to remove them 😕 Nice catch though!