Pol242 Pompeii2013
Channel: Pol242 Pompeii2013
Date: 2013-10-09

2013POL242HW1

SYNTAX:

ATTITUDES TOWARDS IMMIGRATION
set width=80/length=none/header=no/messages=none.
get file="/homes/josephf/webstats/ANES_2012.sav".
missing values IMMIGPO (-9 thru -6).
recode IMMIGPO (1,2=1) (3=0) (4,5=-1)
value label IMMIGPO 1 '+++' 0 '===' -1 '---'
fre var=IMMIGPO/statistics=All.
*startofoutput.
finish.

CONCERN FOR EMPLOYMENT
set width=80/length=none/header=no/messages=none.
get file="/homes/josephf/webstats/ANES_2012.sav".
missing values DEM_EMPT (-9 thru -1).
recode DEM_EMPT (5,6,7=1) (1=2) (2,4,8=3)
value label DEM_EMPT 1 'Not concerned' 2 'Employed' 3 'Not employed'
fre var=DEM_EMPT/statistics=All.
*startofoutput.
finish.

LEVEL OF EDUCATION
set width=80/length=none/header=no/messages=none.
get file="/homes/josephf/webstats/ANES_2012.sav".
missing values DEM_EDUG (-9,-2).
fre var=DEM_EDUG/statistics=All.
*startofoutput.
finish.

CROSS-TABULATION 1 - CONCERN FOR EMPLOYMENT
set width=80/length=none/header=no/messages=none.
get file="/homes/josephf/webstats/ANES_2012.sav".
missing values IMMIGPO (-9 thru -6).
missing values DEM_EMPT (-9 thru -1).
recode IMMIGPO (1,2=1) (3=0) (4,5=-1)
value label IMMIGPO 1 '+++' 0 '===' -1 '---'
recode DEM_EMPT (5,6,7=1) (1=2) (2,4,8=3)
value label DEM_EMPT 1 'Not concerned' 2 'Employed' 3 'Not employed'
crosstab tables=IMMIGPO by DEM_EMPT
 /cells=column count /statistics=All.
*startofoutput.
finish.

CROSS-TABULATION 1 - LEVEL OF EDUCATION
set width=80/length=none/header=no/messages=none.
get file="/homes/josephf/webstats/ANES_2012.sav".
missing values IMMIGPO (-9 thru -6).
missing values DEM_EDUG (-9,-2).
recode IMMIGPO (1,2=1) (3=0) (4,5=-1)
value label IMMIGPO 1 '+++' 0 '===' -1 '---'
crosstab tables=IMMIGPO by DEM_EDUG
 /cells=column count /statistics=All.
*startofoutput.
finish.