syntax+homework+2 - EXECUTE. VALUE LABELS abdefect abrape...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
USE ALL. COMPUTE filter_$=(year = 2000 OR year = 2008). VARIABLE LABEL filter_$ 'year = 2000 OR year = 2008 (FILTER)'. VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. FORMAT filter_$ (f1.0). FILTER BY filter_$. EXECUTE. CROSSTABS /TABLES=abhlth BY abrape /FORMAT=AVALUE TABLES /CELLS=COUNT ROW COLUMN TOTAL /COUNT ROUND CELL. CROSSTABS /TABLES=abhlth BY abdefect /FORMAT=AVALUE TABLES /CELLS=COUNT ROW COLUMN TOTAL /COUNT ROUND CELL. CROSSTABS /TABLES=abdefect BY abrape /FORMAT=AVALUE TABLES /CELLS=COUNT ROW COLUMN TOTAL /COUNT ROUND CELL. CROSSTABS /TABLES=abdefect BY abrape BY abhlth /FORMAT=AVALUE TABLES /CELLS=COUNT ROW COLUMN TOTAL /COUNT ROUND CELL. RECODE abhlth abdefect abrape (0=SYSMIS) (8=SYSMIS) (9=SYSMIS) (2=0).
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EXECUTE. VALUE LABELS abdefect abrape abhlth '0' 'No' '1' 'Yes'. COMPUTE absum=abdefect+abhlth+abrape. EXECUTE. CROSSTABS /TABLES=abhlth abrape abdefect BY absum /FORMAT=AVALUE TABLES /CELLS=COUNT ROW COLUMN TOTAL /COUNT ROUND CELL. CROSSTABS /TABLES=polviews BY absum /FORMAT=AVALUE TABLES /CELLS=COUNT ROW COLUMN TOTAL /COUNT ROUND CELL. RECODE educ (12=1) (16=3) (0 thru 11=0) (13 thru 15=2) (17 thru 20=4) INTO neweduc. EXECUTE. VALUE LABELS neweduc '0' 'Less than high school' '1' 'High school' '2' 'Some college' '3' 'College' '4' 'Grad School'. MEANS TABLES=absum BY neweduc /CELLS MEAN COUNT STDDEV....
View Full Document

Ask a homework question - tutors are online