U.S. Census Bureau Homepage

Survey of Program Dynamics

Custom Programming SAS Code for Merging SPD Files


DESCRIPTION: The first SPD longitudinal file contains edited information on
employment, earnings, income sources, income amounts, health insurance, and
poverty. It also contains some information regarding means-tested government
transfer programs, such as TANF and Food Stamps. Due to time constraints
and in the interest of providing users with a consistent and current file in
the most timely manner, a number of variables from the SPD core and topical
modules were not included on the first version of the longitudinal file.

In addition to the core data on the SPD longitudinal file, the SPD 1998
instrument collected a wealth of information that allows for an in-depth
analysis of household and family characteristics pertaining directly to
welfare reform. These data include questions on new welfare programs such
as transportation assistance, childcare vouchers, and newly instituted work
training and child well-being modules. Although these data are not currently
included on the SPD longitudinal file, they are available on the SPD 1998
Experimental file.

Users wishing to use the full complement of these data may do so by merging
SPD Longitudinal file with the 1998 file. Users should be warned, however,
that these data underwent less rigorous editing procedures than did data on
other SPD files. In addition, the data available are for 1997 only, so
comparisons using the same variable over time, in most cases cannot be made.

The merging procedure is actually quite simple and the program below can be
directly downloaded and executed with a minimum amount of work. The program
merges the SPD longitudinal file with the SPD 1998 Experimental file at the
person level. The variables required for this type of merge are:

SIPP_PNL SIPP Panel Number
PP_ID Sample Unit Identification Number
PP_PNUM Person Identification Number

For merges at other units of analysis, please see
http://www.census.gov/spd/long/fileinfo-1stl.htm for more information.

To execute the file merge, simply select a directory path for the library
statement, enter the appropriate name for each file where specified in the
program, and select a name for the merged file. It is also recommended that
users give some thought to the size of the files they are working with.
There are 2047 variables on the longitudinal file and 3122 on the experimental
file. Keeping only the variables from the experimental file that one wishes
to work with will help reduce file size and increase the processing speed
of programs.


CREATED: 1/23/01



libname spd '' ;

data temp_lng ;
set spd. ;

MERGEKEY = (sipp_pnl||pp_id||pp_pnum||pp_entry) ;

run ;

data temp_exp ;
set spd.
(keep = sipp_pnl pp_id pp_pnum pp_entry plus specify which variables to
keep from the experimental file) ;

MERGEKEY = (sipp_pnl||pp_id||pp_pnum||pp_entry) ;

run ;

proc sort data = temp_lng ;
run ;

proc sort data = temp_est ;
run ;

data spd. ;
merge temp_lng (in=a) temp_est (in=b) ;
by mergekey ;
if a ;
run ;

end of content rule

Linking Files

Skip bottom navigation groups

Contact: (dsd.survey.program.dynamics@census.gov)
URL: http://www.census.gov/spd/


Introduction to SPD |  Survey Design & Content |  Data Editing |  Finding SPD Info |  Sampling & Weighting | 
Linking Files | Publications |  S&A  |  News&Notes |  Users' Guide | 


Census 2000  |  Subjects A to Z  |  Search  |  Product Catalog  |  Data Access Tools  |  FOIA  |  Privacy · Policies  |  Contact Us  |  Home
separator rule
U.S. Census Bureau: Helping You Make Informed Decisions