![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Appendix C: Unpacking Multiple EntriesResponses to multiple entry questions found in early years of the surveys of the four Original Cohorts were coded in a geometric progression format to conserve space on the tape. Variables such as ‘Method of Seeking Employment,’ ‘Method of Finding Current or Last Job,’ ‘Type of Financial Aid Received,’ ‘Type of Child Care Arrangement,’ and numerous health-related questions have been formatted in this way since the surveys began. Multiple entry items are identified by an asterisk under the source code box in the questionnaire and by a special detailed codeblock in the documentation. These responses need to be “unpacked” before they can be used in analysis. Although the example below pertains specifically to the Mature Women’s cohort, it is applicable to the Young Women as well. Example: Codes for the variable R03380., ‘Fringe Benefits at Current Job 77,’ range from 1 (the respondent reported only one such benefit, “medical insurance”) to 259 (the respondent reported “medical insurance,” “life insurance,” and “paid sick leave”) to 1023 (the respondent reported that she had access to all of the benefits listed). Although there are several different ways to sort out which respondent has positive answers on which components, this appendix provides one example in SAS and one example in SPSS. Program 1: Unpacking Fringe Benefits Data in SASThis SAS program unpacks fringe benefits from the variable “fringe.” It creates 10 (dichotomous) dummy variables indicating the presence or absence of each of the 10 benefits. Each dummy is set to missing if fringe is missing (coded at -998 or -999). Note that the variables are created in reverse order from the codeblock, i.e., MEDICAL is code 1 on the tape and FRINGE10 in the program. The program statements listed below can be modified by the user to include the expanded set of fringe benefits available in later survey years as well as to unpack other multiple entry variables by extending the dummy, the counter, and the number of variables to agree with the total number of responses listed in the codeblock in the documentation.
if all ge 512 then do; fringe10=1;
all=all-512; end; label fringe01='medical,surgi'; Program 2: Unpacking Fringe Benefits Data in SPSSThe SPSS program works in the same way as the SAS program. Users of this alternative package can follow this template. /* UNPACKING 1981 YOUNG MEN FRINGE BENEFITS: SPSS/ compute FB1=0 compute FB2=0 compute FB3=0 compute FB4=0 compute FB5=0 compute FB6=0 compute FB7=0 compute FB8=0 compute FB9=0 compute FB10=0 compute FB11=0 compute FB12=0 compute
FB81a=FB81 do if (2048 le
FB81) do if (1024 le
FB81) do if (512 le
FB81) do if (256 le
FB81) do if (128 le
FB81) do if (64 le
FB81) do if (32 le
FB81) do if (16 le
FB81) do if (8 le
FB81) do if (4 le
FB81) do if (2 le
FB81) do if (1 le
FB81)
Return to top Return to Table of Contents
|