1 / 12

SPSS tips and tricks for the initiated

SPSS tips and tricks for the initiated. Ways of working. Use menus to run commands Use menus, paste commands, run Write commands, run Your main product: ”The Syntax File” !!. Viewer. Contains all output Show/hide or delete elements Double-click to edit element

imann
Download Presentation

SPSS tips and tricks for the initiated

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SPSS tips and tricksfor the initiated

  2. Ways of working • Use menus to run commands • Use menus, paste commands, run • Write commands, run • Your main product: ”The Syntax File” !! H.S.

  3. Viewer • Contains all output • Show/hide or delete elements • Double-click to edit element • Double-click on chart to start Chart Editor H.S.

  4. Select and Filter Select if (age>50). Compute ff=(age>50). Filter by ff. … Filter off. Temporary Select if (age>50). command. H.S.

  5. Compute and If If (age<=50) old=0. If (age>50) old=1. Compute old=(age>50). Comp oldMale=0. If (age>50 and sex=1) oldMale=1. Compute oldMale= (age>50 and sex=1). Compute id=$casenum. H.S.

  6. Recode recode age (missing=sysmis) (lowest thru 29=1) (30 thru 39=2) (40 thru highest=3) into ageGr3. or comp ageGr3=1+(age>=30) +(age>=40). variable label ageGr3 ’Age in 3 groups’. value label ageGr3 1’29 years’ 2’30-39 years’ 3’40 years’. Rank age /ntiles(3) into ageGr3. Examine age by ageGr3 /plot=none. H.S.

  7. Missing • System missing • Empty values are marked ”.” and called sysmis • User missing • Set to missing: missing age (999). • Set to value: missing age (). • Selection • Remove sysmis: select if (not sysmis(age)) • Remove all missing: select if (not missing(age)) H.S.

  8. Set to missing • Make new variable compute miss=1. recode miss (1=sysmis). • Use the miss variable If (age>120) age=miss. H.S.

  9. Functions that ignore missing • Sum function compute s1=a1+a2+a3. compute s1=Sum(a1,a2,a3). compute s1=Sum.2(a1,a2,a3). • Function list • Sum, Product, Min, Max, Mean H.S.

  10. compute a=1. execute. compute b=a+1. freq b. Transformations pending Execute. • Example • Edit, Options, Data, • Calculate values immediately / before used H.S.

  11. Long and wide data • Data, Restructure Long: Wide: H.S.

  12. Variable order • Variable order and display • Edit, Options, General, • Alphabetical / File • Labels / Names • Save workfile save outfile= ’h:\Data\file1.sav’ /Keep=id age sex educ… H.S.

More Related