27.12.2012 Views

The 1995/1996 Household Income, Expenditure - (PDF, 101 mb ...

The 1995/1996 Household Income, Expenditure - (PDF, 101 mb ...

The 1995/1996 Household Income, Expenditure - (PDF, 101 mb ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

REFRMT.SAS 1<br />

options pagesize=60;<br />

libname in 'c:\process\';<br />

filename a1 'c:\process\cov.out';<br />

/*******last three digits of quantities are grams***********/;<br />

/*******last two digits of values are piastres**************/;<br />

/*******for expenditures, only rectype 15 has no decimals***/;<br />

/*******for all income records, there are no decimals*******/;<br />

/*******dichotomous variables coded 2 were recoded 0********/;<br />

data in.cov;<br />

infile a1 missover;<br />

input rectype 1-2 numgov 3-6 numsv 7-10 numfr 11-12 round 13 month 14-15<br />

gov 16-17 urbrur 18 km 19-20 sv 21-23 psu 24-26<br />

fill 27 typer 28 reasonnr 29 males 30-31 females 32-33 total 34-35;<br />

if fill=2 then fill=O;<br />

if typer=2 then typer=O;<br />

if urbrur=2 then urbrur=O;<br />

title 'SUMMARY STATS FROM THE COVER RECORD';<br />

proc means; run;<br />

,<br />

filename a2 'c:\process\dem.out';<br />

data in.dem;<br />

infile a2 missover;<br />

input rectype 1-2 numgov 3-6 numsv 7-10 numfr 11-12 round 13 month 14-15<br />

gov 16-17 urbrur 18 km 19-20 sv 21-23 psu 24-26 resp 27<br />

indno 28-29 rei 30 sex 31 age 32-33 educ 34 lastyr 35 eductype 36<br />

stage 37 yrs 38 marstat 39 workstat 40 untype 41 look 42<br />

reason 43 empstat 44 days 45 occu $ 46-51 econact $ 52-55 sector 56<br />

earner 57 source1 58 source2 59 source3 60 source4 61 sourceS 62<br />

source6 63;<br />

if urbrur=2 then urbrur=O;<br />

/* DEMOGRAPHICS */;<br />

if rel=l then head=1; else head=O;<br />

if rel=2 then spouse=1; else spouse=O;<br />

if rel=3 then kid=1; else kid=Oi<br />

if rel=4 then kidinlaw=l; else kidinlaw=Oi<br />

if rel=5 then parent=l; else parent=O;<br />

if rel=6 then grandkid=1i else grandkid=O;<br />

if rel=7 then sibling=1; else sibling=Oi<br />

if rel=8 then othrel=1i else othrel=Oi<br />

if rel=9 then norel=1i else norel=Oi<br />

if sex=2 then sex=Oi<br />

if age < 20 then lt20=1; else lt20=0;<br />

if 20 < age le 30 then gt20le30=li else gt20le30=0;<br />

if age> 50 then gt50=1; else gt50=O;<br />

if educ=l then underage=l; else underage=O;<br />

if educ=2 then i11it=1; else i1lit=O;<br />

if educ=3 then readrite=l; else readrite=o;<br />

if educ=4 then prim=l; else prim=o;<br />

if educ=5 then sec=l; else sec=O;<br />

if educ=6 then secplus=l; else secp1us=O;<br />

if educ=7 then univ=l; else univ=o;<br />

if educ=8 then univplus=1; else univplus=O;<br />

if eductype=1 then govnorm=l; else govnorm=Oi<br />

if eductype=2 then govlang=l; else govlang=O;<br />

if eductype=3 then privnorm=l; else privnorm=O;<br />

if eductype=4 then privlang=1i else privlang=O;<br />

if stage=1 then primlev=l; else primlev=O;<br />

if stage=2 then preplev=1; else preplev=O;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!