hello, I'm trying to create a new categorical variable based on percentiles higher than 25 but lower than 50 but dont know ho to express that in the line of code, here is the one I have so far.
Notice that I changed the comparisons. You should not have a condition for == 0.25 and another one that starts with >= 0.25. Those will both be TRUE for values of 0.25. I merely guessed at a possible arrangement of the logic and you should change that to whatever is correct for your situation.