Census 2000: Accessing and Utilizing Data Resources
August 13-15, 2001
SAS and SPSS Exercises
For the practicum, ICPSR staff prepared SAS and SPSS programs, described
below,
which workshop participants used to analyze data from two Census 2000 data
releases: the Public Law 94-171 File (redistricting data) and Summary File 1.
One can download these programs and associated data files from our directory:
http://www.icpsr.umich.edu/CENSUS2000/TRAINING/2001/ftpdir/
- spssex1
This SPSS program generates a subset of cases and variables from
the public law data. The subset comprises all cases that
represent summary levels 730 and 750 in Ann Arbor, Michigan.
The program writes the subset to a SPSS export file named aa.por.
- spssex2
This SPSS program reads in the subset generated by spssex1,
produces descriptive statistics for blocks in Ann Arbor, and
lists the population of selected census tracts in Ann Arbor, by
block and race.
- spssex3
This SPSS program generates a subset of cases and variables from
Summary File 1 data. The subset consists of all all cases
representing summary levels 158, 155, and 160 in New York City.
The program writes the subset to a SPSS export file named
nyc.por.
- spssex4
This SPSS program reads in nyc.por and computes segregation
indices for New York City.
- sasex1
A SAS program that produces the same subset as spssex1. The
subset is written to a SAS transport (CPORT) file, aa.cpt.
- sasex2
This SAS program produces the same computations as spssex2.
- sasex3
A SAS program that produces the same subset as spssex3. The
subset is written to a SAS transport (CPORT) file, nyc.cpt.
- sasex4
This SAS program produces the same computations as spssex4.
Note: Users will have to modify the file pathnames in the programs to
point to their own file locations. (In the workshop, all files were read from
directory f:/axelrod/.)
|