Poli 30D Political Inquiry SPSS Tutorial Shane Xinyang Xuan - - PowerPoint PPT Presentation

poli 30d political inquiry
SMART_READER_LITE
LIVE PREVIEW

Poli 30D Political Inquiry SPSS Tutorial Shane Xinyang Xuan - - PowerPoint PPT Presentation

Poli 30D Political Inquiry SPSS Tutorial Shane Xinyang Xuan ShaneXuan.com October 5, 2016 ShaneXuan.com 1 / 10 Contact Information Shane Xinyang Xuan xxuan@ucsd.edu We have someone to help you every day! Professor Desposato M 1330-1500


slide-1
SLIDE 1

Poli 30D Political Inquiry

SPSS Tutorial Shane Xinyang Xuan ShaneXuan.com October 5, 2016

ShaneXuan.com 1 / 10

slide-2
SLIDE 2

Contact Information

Shane Xinyang Xuan xxuan@ucsd.edu We have someone to help you every day! Professor Desposato M 1330-1500 (Latin American Center) Shane Xuan Tu 1600-1800 (SSB332) Cameron Sells W 1000-1200 (SSB352) Kelly Matush Th 1500-1700 (SSB343) Julia Clark F 1200-1400 (SSB326) Supplemental Materials Our class oriented ShaneXuan.com UCLA SPSS starter kit www.ats.ucla.edu/stat/spss/sk/modules_sk.htm Princeton data analysis http://dss.princeton.edu/training/

ShaneXuan.com 2 / 10

slide-3
SLIDE 3

Everyone’s Favorite

Announcement and Quiz(!!)

ShaneXuan.com 3 / 10

slide-4
SLIDE 4

Everyone’s Favorite

Announcement Next section will be held at the normal classroom

ShaneXuan.com 3 / 10

slide-5
SLIDE 5

Everyone’s Favorite

Quiz Where will we have our next section? Template: Example:

ShaneXuan.com 3 / 10

slide-6
SLIDE 6

Housekeeping Notes

– Data: NES 2008 – Download your data: TritonEd Content Course Data Files NES dataset – This is the data set that we will be using a lot throughout the

  • quarter. Save it on your computer or somewhere easily

accessible.

ShaneXuan.com 4 / 10

slide-7
SLIDE 7

SPSS: Basics

– Read Data – Open a syntax file: File New Syntax – Explore your data: FREQUENCIES VARIABLES = var – Example: FREQUENCIES VARIABLES = v1

ShaneXuan.com 5 / 10

slide-8
SLIDE 8

SPSS: Recode Values

– Motivation: To re-classify variables for your research question – Syntax: RECODE var (val1 = val2) – Example: RECODE v33 (1 2 = 1)(3 = 2)(4 5 = 3) – Example: RECODE v10 (lo thru 2 = 1)(3 = 2)(4 thru hi = 3)

ShaneXuan.com 6 / 10

slide-9
SLIDE 9

SPSS: Recode Values

We all love examples!

ShaneXuan.com 6 / 10

slide-10
SLIDE 10

SPSS: Recode Values

After recoding:

ShaneXuan.com 6 / 10

slide-11
SLIDE 11

SPSS: Recode Variables

– Motivation: Sometimes you don’t want to make changes to the original variable – Syntax: INTO var2 – Example: RECODE v39 (1 2 3 = 1)(4 = 2)(5 6 7 = 3) INTO v39p

ShaneXuan.com 7 / 10

slide-12
SLIDE 12

SPSS: Recode Variables

We all love examples!

ShaneXuan.com 7 / 10

slide-13
SLIDE 13

SPSS: Recode Variables

After recoding:

ShaneXuan.com 7 / 10

slide-14
SLIDE 14

SPSS: Computation

– Execute the following code: FREQUENCIESS VARIABLES = v80

ShaneXuan.com 8 / 10

slide-15
SLIDE 15

SPSS: Computation

– Execute the following code: FREQUENCIESS VARIABLES = v80 FREQUENCIESS VARIABLES = v78

ShaneXuan.com 8 / 10

slide-16
SLIDE 16

SPSS: Computation

– Execute the following code: FREQUENCIESS VARIABLES = v80 FREQUENCIESS VARIABLES = v78 COMPUTE DIFF = v80 - v78

ShaneXuan.com 8 / 10

slide-17
SLIDE 17

SPSS: Computation

– Execute the following code: FREQUENCIESS VARIABLES = v80 FREQUENCIESS VARIABLES = v78 COMPUTE DIFF = v80 - v78 FREQUENCIESS VARIABLES = DIFF

ShaneXuan.com 8 / 10

slide-18
SLIDE 18

SPSS: Computation

– Execute the following code: FREQUENCIESS VARIABLES = v80 FREQUENCIESS VARIABLES = v78 COMPUTE DIFF = v80 - v78 FREQUENCIESS VARIABLES = DIFF – Syntax: COMPUTE var = (formula)

ShaneXuan.com 8 / 10

slide-19
SLIDE 19

SPSS: Computation

– Execute the following code: FREQUENCIESS VARIABLES = v80 FREQUENCIESS VARIABLES = v78 COMPUTE DIFF = v80 - v78 FREQUENCIESS VARIABLES = DIFF – Syntax: COMPUTE var = (formula) – Other computation: +; −; /; ∗; ∗∗; ABS; SQRT

ShaneXuan.com 8 / 10

slide-20
SLIDE 20

SPSS: Loops!

Syntax: IF (condition) var = val Example: IF (DIFF > 0) RACIST = -1 IF (DIFF = 0) RACIST = 0 IF (DIFF < 0) RACIST = 1

ShaneXuan.com 9 / 10

slide-21
SLIDE 21

SPSS: Loops!

Interpret this table:

ShaneXuan.com 9 / 10

slide-22
SLIDE 22

This concludes our lab!

– We covered a lot of materials today Galderisi (pp. 1–48; 112–183) – Read theses pages when you are back home. Make sure you understand the details – Practice, Practice, Practice – We will cover Galderisi (pp. 49–111) in November Next section will be held at the normal classroom. See you next week!

ShaneXuan.com 10 / 10