Hi, I am new to STATA and would really appreciate if someone could advise me on the following:
I would like to generate a new categorical variable that would correspond to histogram bins.
I have 200759 observations, 7064 bins (0.005 widths); min value of the variable is -19.80374 and maximum 15.48759.

I've tried gen with autocode but getting missing values
Thanks.