*SPSS Download Code *Single Segment Analysis * *Older Adult Victimization Research Question No. 1: * *1. For which violent crimes perpetrated in residential *settings are adults aged 65 or older more likely than *people aged 64 or younger to be victimized? ************************************************************. GET FILE = 'Directory:\Path\Incident-level flat file.sav'. 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'. RECODE inc_loc (20 = 1)(else = 2)into locgroup. VALUE LABELS locgroup 1 'Home/Residence' 2 'Other Location'. RECODE vage65 (0 = 2)(1 thru hi = 1)into age65grp. VALUE LABELS age65grp 1 'Age 65 or Older' 2 'Age 64 or Younger'. VARIABLE LABELS msoffgp '' index '' age65grp '' locgroup '' . USE ALL. COMPUTE filter_$=(locgroup = 1 & msoffgp = 1). VARIABLE LABEL filter_$ 'locgroup = 1 & msoffgp = 1(FILTER)'. VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. FORMAT filter_$ (f1.0). FILTER BY filter_$. * General Tables. TABLES /FORMAT BLANK MISSING('.') /GBASE=CASES /TABLE= index BY age65grp > locgroup /STATISTICS cpct( locgroup( PCT5.1 ) '':age65grp locgroup ).