*SPSS Download Code *Single Segment Analysis * * Juvenile Multiple Offender Incident Research Question 1: * * Are juveniles aged 10-17 more likely than adults to be * involved in multiple offender incidents? ************************************************************ GET FILE = 'Directory:\Path\Incident-level flat file.sav'. compute type_inc = 0. if (off_cnt = 1)type_inc = 1. if (off_cnt gt 1)type_inc = 2. value labels type_inc 1 'Single Offender' 2 'Multiple Offenders'. missing values type_inc (0). Compute INDEX = msioff. recode index (90 = 1)(110 = 2) (120 = 3) (130 = 4)(140 = 5)(160 thru 167 = 6)(150 = 7) (else = 8). value labels index 1 'Murder and Nonnegligent Manslaughter' 6 'Larceny' 7 'Motor Vehicle Theft' 3 'Robbery' 2 'Forcible Rape' 4 'Aggravated Assault' 5 'Burglary' 8 'All other offenses'. recode index (1 thru 4 = 1)(5 thru 7 = 2)(else = 3)into msoffgp. value labels msoffgp 1 'Person Offenses' 2 'Property Offenses' 3 'Other Offenses'. if (offadult ge 1 and off1017 = 0)juv_off = 0. if (off1017 ge 1 )juv_off = 1. variable labels juv_off ' Incident involved a juvenile offender'. value labels juv_off 1 'Juvenile offender(s)' 0 'Adult offender(s)'. temporary. variable labels type_inc '' juv_off '' . tables /format blank missing('.') /gbase=cases /ftotal= $t000001 "Total" $t000002 "Total" /table= type_inc + $t000001 by juv_off + $t000002 /statistics count( type_inc( F5.0 )) cpct( type_inc( PCT5.1 ) 'Percent':juv_off ) /title 'Incident Offender'+ ' Composition by Age Group of Offender'. SAVE OUTFILE = 'Directory:\Path\Incident-level flat file.sav'.