***************Syntax File Follows**************** Comment Comments in syntax files can be very useful. Begin a Comment with "Comment." (without the "." - you can also start with "****") Indenting each line, as I do, is a nice aesthetic touch to make comments easy to read. The Comment will continue until you enter a blank line OR have a period at the end of a line. To clarify, WARNING, a period at the end of any line in a Comment ends the Comment and any lines that follow won't be recognized as a Comment - SPSS will treat them as commands!! ************ I added this to visually end this comment - not necessary, but pretty. Comment Note--This file is formatted to NOT screen wrap. You may have to scroll right to see an entire line. Comment you can just copy and paste this whole thing into your syntax editor and run it - no thinking required, but I do recommend that you try to figure out what's happening here - someday, you'll be writing these files! Comment The following "numeric" throws in all the variables I will be creating with other commands below. Making the variables in numeric first certainly isn't necessary, but it does allow you to easily keep those ".00"s from following all of your new variable numbers. numeric tbh1 tbh2 lrh1 lrh2 halft thirdt strt1 strt2 trl1 trl2 spir1 spir2 spin1 spin2 stwe1 stwe2 shwe1 shwe2(f4.0). execute. Comment This bit takes your quadrant data and parses them into top and bottom halves of the Roomba world. Ask yourself, is there anything systematically different about the top and bottom halves of this world? RECODE qud1 qud2 (1=1) (2=1) (3=2) (4=2) INTO tbh1 tbh2 . VARIABLE LABELS tbh1 'Top Bottom Half 1' /tbh2 'Top Bottom Half 2'. EXECUTE . value labels tbh1 1 'Top Half' 2 'Bottom Half'. execute. value labels tbh2 1 'Top Half' 2 'Bottom Half'. execute. Comment This bit takes your quadrant data and parses them into left and right halves of the Roomba world. Ask yourself, is there anything systematically different about the left and right halves of this world? RECODE qud1 qud2 (1=1) (3=1) (2=2) (4=2) INTO lrh1 lrh2 . VARIABLE LABELS lrh1 'Left Right Half 1' /lrh2 'Left Right Half 2'. EXECUTE . value labels lrh1 1 'Left Half' 2 'Right Half'. execute. value labels lrh2 1 'Left Half' 2 'Right Half'. execute. Comment There are 300 trials per tape. This bit divides those trials into 1st and 2nd halves. RECODE trial (Lowest thru 150=1) (151 thru Highest=2) INTO halft . VARIABLE LABELS halft 'Half of Session'. EXECUTE . value labels halft 1 'First Half' 2 'Second Half'. execute. Comment This bit divides the trials into thirds. If you want to slice things thinner - go for it! You should see how to do it with syntax. RECODE trial (1 thru 100=1) (101 thru 200=2) (201 thru 300=3) INTO thirdt . VARIABLE LABELS thirdt 'Third of Session'. EXECUTE . value labels thirdt 1 'First Third' 2 'Second Third' 3 'Third Third'. execute. Comment Here we take anything that could be considered "straight" and turn that into a "Yes" and take the rest and turn them into "No." So you have " Went Straight, Yes/No - think about it - you'll get it. RECODE beh1 beh2 (4 thru 6=1) (1 thru 3=2) INTO strt1 strt2 . VARIABLE LABELS strt1 'Went Straight 1'/strt2 'Went Straight 2'. EXECUTE . value labels strt1 1 'Yes' 2 'No' . execute. value labels strt2 1 'Yes' 2 'No' . execute. Comment Here I created a variable that indicates whether Roomba "turned" left or right. DO IF (beh1 = 3) . RECODE rl1 (1=1) (2=2) INTO trl1 . END IF . VARIABLE LABELS trl1 'Turn Left Right'. EXECUTE . DO IF (beh2 = 3) . RECODE rl2 (1=1) (2=2) INTO trl2 . END IF . VARIABLE LABELS trl2 'Turn Left Right'. EXECUTE . value labels trl1 1 'Left' 2 'Right' . execute. value labels trl2 1 'Left' 2 'Right' . execute. Comment Here I created a variable that indicates whether Rommba spiraled left or right. DO IF (beh1 = 1) . RECODE rl1 (1=1) (2=2) INTO spir1 . END IF . VARIABLE LABELS spir1 'Spiral Left/Right'. EXECUTE . DO IF (beh2 = 1) . RECODE rl2 (1=1) (2=2) INTO spir2 . END IF . VARIABLE LABELS spir2 'Spiral Left/Right'. EXECUTE . value labels spir1 1 'Left' 2 'Right' . execute. value labels spir2 1 'Left' 2 'Right' . execute. Comment You guessed it - here we have a variable that indicates whether Rommba spun left or right. DO IF (beh1 = 2) . RECODE rl1 (1=1) (2=2) INTO spin1 . END IF . VARIABLE LABELS spin1 'Spin Left/Right'. EXECUTE . DO IF (beh2 = 2) . RECODE rl2 (1=1) (2=2) INTO spin2 . END IF . VARIABLE LABELS spin2 'Spin Left/Right'. EXECUTE . value labels spin1 1 'Left' 2 'Right' . execute. value labels spin2 1 'Left' 2 'Right' . execute. Comment This indicates whether Roomba went straight along an edge/wall on its left or right side. DO IF (beh1 = 5) . RECODE rl1 (1=1) (2=2) INTO stwe1 . END IF . VARIABLE LABELS stwe1 'Wall/Edge on Left/Right'. EXECUTE . DO IF (beh2 = 5) . RECODE rl2 (1=1) (2=2) INTO stwe2 . END IF . VARIABLE LABELS stwe2 'Wall/Edge on Left/Right'. EXECUTE . value labels stwe1 1 'Left' 2 'Right' . execute. value labels stwe2 1 'Left' 2 'Right' . execute. Comment This indicates whether Roomba shimmied along an edge/wall on its left or right side. DO IF (beh1 = 6) . RECODE rl1 (1=1) (2=2) INTO shwe1 . END IF . VARIABLE LABELS shwe1 ' Shimmy Wall/Edge on Left/Right'. EXECUTE . DO IF (beh2 = 6) . RECODE rl2 (1=1) (2=2) INTO shwe2 . END IF . VARIABLE LABELS shwe2 'Shimmy Wall/Edge on Left/Right'. EXECUTE . value labels shwe1 1 'Left' 2 'Right' . execute. value labels shwe2 1 'Left' 2 'Right' . execute. Comment OK, I'm sure we could keep making variables all day/night, but this should be enough for you to have some fun with. Good luck!! .