Converting Offense Times into Quarter Hour Groupings

___________________________________________________________

Only the incidents with an actual date and time are selected for analysis; incidents coded with a "report" date are excluded. This example also assumes that the INC_HR is reported correctly; incidents at zero hours, representing the midnight hour, are included. (See the Data Quality example on using the variable incident hour for more information.) Twenty-four hour periods are divided into quarters for analysis.
___________________________________________________________

DO IF (rptdate = ‘ ‘).
RECODE inc_hr (0 thru 5 = 1)
(6 thru 11 = 2)
(12 thru 17 = 3)
(18 thru 23 = 4)into qutrday.
END IF.
value labels qutrday 1 'Midnight to 5 a.m.'
2 '6 a.m. to 11a.m.'
3 'Noon to 5 p.m.'
4 '6 p.m. to 11 p.m.'.
____________________________________________________________