SAS Code to Read in the ASCII SIPP 2001 Wave 8 Food
Security Data File
data temp; infile 'd:\foodsecu\sipp\sipp01w8fs.dat'
lrecl=22;
*modify path and filename in accordance with file location in your
system;
input
@1 ssuid $ 12. /* first two variables are to match by 1998 household
*/
@13 shhadid 2.
@15 aafdsec 1. /* flag indicating if any of the scale variables
was imputed */
@16 rafsraw 1. /* household food security raw score */
@17 rafsscal f5.2 /* household food security scale score (interval-level
measure) */
@22 rafsstat 1.; /* household food security status category (categorical
measure) */
run;
proc freq data=temp; tables aafdsec rafsraw rafsscal rafsstat;
title1 ‘Run 8: HH in ascii public-use file, unweighted';
run;
*match this SAS data set to the SIPP 2001 Wave 8 Topical
Module Data File by SSUID and SHHADID;
|