Great question!
| basehs | baseline headache score |
| posths | post treatment headache score |
| oneyrhs | one year followup headache score |
| acuptreatments | number of treatments received |
| acu_cat | categorical variable of number of treatments received |
Here is how I created the act_cat variable:
gen acu_cat = acuptreatments
recode acu_cat 1/5=1 6/10=2 11/15=3
tab acu_cat
label define acu_cat_label 1"1-5" 2 "6-10" 3 "11-15"
label values acu_cat acu_cat_label