I have a time variable on the basis of which i wish to categorize my study subjects into groups (for eg 09:00am-05:00pm becomes group 1, and 5:00pm-9:00am becomes group 2). i am trying to figure this out in STATA software. 

also can i possibly categorize based on days as well? (weekends vs weekdays)?

Similar questions and discussions