i want to create some variables based on the definitions below and i would help with the stata code
IntCov1 Variable equals IntCov if 0 ≤ IntCov < 5, and 5 otherwise
IntCov2 Variable equals 0 if IntCov< 5, equals (IntCov-5) if 5 ≤ IntCovt< 10, and 5 otherwise
IntCov3 Variable equals 0 if IntCov< 10, equals (IntCov-10) if 10 ≤ IntCov< 20, and 10 otherwise
IntCov4 Variable equals 0 if IntCov< 20, and (IntCov-20) otherwise