Hi,
I have a dataset with +1000 patients that had multiple blood test regarding there blood glucose level. I want to determine how many of the patients have had ≥1 hypoglycaemic episode (blood glucose below 2.6). A patient can have multiple blood test (up to 48) and likewise possibly have multiple hypoglycaemic episode, though I want to create a variable that determines if they had a hypoglycaemic episode or not. I thought about a dummy variable but can't figure out how to approach it at the moment. Below is a data example where a variable should show that patient 1, 3 and 4 had a minimum of one blood test < 2.6 and patient 2 did not.
I'm sorry if it's an elementary question and would appreciate any kind of help.
Many thanks in advance,
Kristoffer
I have a dataset with +1000 patients that had multiple blood test regarding there blood glucose level. I want to determine how many of the patients have had ≥1 hypoglycaemic episode (blood glucose below 2.6). A patient can have multiple blood test (up to 48) and likewise possibly have multiple hypoglycaemic episode, though I want to create a variable that determines if they had a hypoglycaemic episode or not. I thought about a dummy variable but can't figure out how to approach it at the moment. Below is a data example where a variable should show that patient 1, 3 and 4 had a minimum of one blood test < 2.6 and patient 2 did not.
| Patient | Blood_test1 | Blood_test2 | Blood_test3 | Blood_test4 | Blood_test5 |
| 1 | 2.5 | 2.7 | 1.6 | 2.6 | 3.0 |
| 2 | 2.8 | 2.9 | 2.7 | ||
| 3 | 1.7 | 1.3 | 2.5 | 2.8 | |
| 4 | 1.4 | 2.7 | 2.7 |
Many thanks in advance,
Kristoffer

Comment