1. Sample program to merge giving, volunteering, education, birth date, and religion variables onto existing data set.
Note: The Center assumes no responsibility for the accuracy of the programs or data. Use at your own risk.
The input data sets are used by WKSH_MEGEDATA.SAS to create a SAS data set and a CSV file with demographic, religious affiliation, education level, birth date, and giving and volunteering data for individuals age 25-33 born into the sample, excluding the new immigrant and Latino individuals.
Instructions: Copy the data sets and program to an area that can be accessed by SAS, change the libname statement to point to the appropriate location of the data sets, and run the program.
Data sets:
WKSHTEST.SAS7BDAT
WKSHBD6801.SAS7BDAT
WKSHRELG.SAS7BDAT
WKSHEDUC.SAS7BDAT
WKSHGIVE.SAS7BDAT
Program: WKSH_MERGEDATA.SAS
2. Sample programs to create data sets with giving, volunteering, education, birth date, and religion variables from ascii files.
Note: The Center assumes no responsibility for the accuracy of the programs or data sets. Use at your own risk.
The FAMILY (.dat) files must be downloaded from the PSID web site and permanent SAS data sets must be created. The .dat files used by the following programs must be downloaded from the PSID web site. The programs will create the other intermediate SAS data sets. The #README file identifies the input and output data sets required and created by each program, as well as a brief description of the output data set(s).
#README
Instructions: Save the programs and download the .dat files to an area that can be accessed by SAS, create permanent SAS data sets for the FAMILY files (FAM1968-FAM2001), change to libname statements to point to the appropriate location of the data sets and .dat files, and run the programs in the prescribed order.
Run programs in the order listed.
IND6801
IND6801ALLVARS
EGOALT
MH8501
BRTH6801
BRTH6801RWBALL
AVL6801
INDED
EDHW6801
EDUC6801
REL6801A
FAMINC1994
FAMINC1995
FAMINC1996
FAMINC1997
FAMINC1999
FAMINC2001
IND6801HW2001
WLTH2001
CREATE_DATA
STATADATA