If statement Stata
Solution 1:
You can add an extra condition in your if-statement.
keep if category == 1 | (category == 0 & distance > 50 & distance < 60)
You can add an extra condition in your if-statement.
keep if category == 1 | (category == 0 & distance > 50 & distance < 60)