NOTE: Copyright (c) 2002-2008 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software 9.2 (TS2M2) Licensed to MASSACHUSETTS INSTITUTE OF TECHNOLOGY-T&R, Site 70086575. NOTE: This session is executing on the Linux 2.6.32-26-generic (LIN X64) platform. 4/2/10 MIT note: SAS has been updated to 9.2 10w13 (level 2M2) and a 64 bit version has been added. You are running SAS 9. Some SAS 8 files will be automatically converted by the V9 engine; others are incompatible. Please see http://support.sas.com/rnd/migration/planning/platform/64bit.html PROC MIGRATE will preserve current SAS file attributes and is recommended for converting all your SAS libraries from any SAS 8 release to SAS 9. For details and examples, please see http://support.sas.com/rnd/migration/index.html This message is contained in the SAS news file, and is presented upon initialization. Edit the file "news" in the "misc/base" directory to display site-specific news and information in the program log. The command line option "-nonews" will prevent this display. NOTE: SAS initialization used: real time 14.95 seconds cpu time 0.19 seconds 1 options ls=85 ps=500 nocenter; 2 3 /* jda1b.sas -- revised from newt1b 10-23-00 4 for JPE 5 Results for table 1 - descriptive statistics */ 6 /* revised 11/16/98 */ 7 /* using revised basic CPS weights for 1990-93 */ 8 9 libname save '/mit/lelias/Desktop/Acemoglu-Angrist/Data'; NOTE: Libref SAVE was successfully assigned as follows: Engine: V9 Physical Name: /mit/lelias/Desktop/Acemoglu-Angrist/Data 10 libname target "/mit/lelias/Desktop/Acemoglu-Angrist/Output"; NOTE: Libref TARGET was successfully assigned as follows: Engine: V9 Physical Name: /mit/lelias/Desktop/Acemoglu-Angrist/Output 11 12 *******************; 13 ** basic recodes **; 14 *******************; 15 16 data one; 17 set save.marcps_w; NOTE: Data file SAVE.MARCPS_W.DATA is in a format that is native to another host, or the file encoding does not match the session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce performance. 18 19 if 21<=age<=58; 20 21 /* if sex=1; */ 22 23 if ((wkswork>0) and (wsal_val>0)) then lnwkwage=log(wsal_val/wkswork); 24 if (wkswork>0) then wkwage=(wsal_val/wkswork); 25 totwage=wsal_val; 26 jobwage=ern_val; 27 28 fnlwgt=fnlwgt/100; 29 marsupwt=marsupwt/100; 30 fnlwgt2=fnlwgt2/100; 31 32 agegrp=10*int(age/10); 33 age20=(agegrp=20); 34 age30=(agegrp=30); 35 age40=(agegrp=40); 36 age50=(agegrp=50); 37 38 if age<40 then sample='young'; else sample='old'; 39 40 if race=>3 then racegrp=3; else racegrp=race; 41 white=(race=1); 42 black=(race=2); 43 other=(race=3); 44 45 ** code CPI-W from actuaries web page **; 46 ** gopher.ssa.gov/OACT/STATS/cpiw.htm **; 47 48 if year=88 then cpiw=117; 49 else if year=89 then cpiw=122.6; 50 else if year=90 then cpiw=129.0; 51 else if year=91 then cpiw=134.3; 52 else if year=92 then cpiw=138.2; 53 else if year=93 then cpiw=142.1; 54 else if year=94 then cpiw=145.6; 55 else if year=95 then cpiw=149.8; 56 else if year=96 then cpiw=154.1; 57 else if year=97 then cpiw=157.6; 58 cpiw=(cpiw/117); 59 60 rlwkwage=wkwage/cpiw; 61 wkwage=wkwage/cpiw; 62 63 if ((rlwkwage<25) or (rlwkwage)>2000) then do; lnwkwage=.; 64 wkwage=.; end; 65 66 *************************************; 67 ****** federal benefits codes *******; 68 *************************************; 69 70 di=(ss_val/(cpiw*52))>75; 71 oas=((ss_yn=1) and (di=0)); 72 ssi=(ssi_yn=1); 73 ssiordi=((ssi=1) or (di=1)); 74 oasdissi=((ss_yn=1) or (ssi_yn=1)); 75 76 label ssi='received SSI ly' 77 di='(OASDI/wk)>75 (88 $) ly' 78 oas='ss_yn=1 and di=0' 79 ssiordi='ssi=1 or di=1' 80 oasdissi='ss_yn=1 and ssi_yn=1'; 81 82 otherdis=(dis_yn=1); 83 84 ** va benefits **; 85 86 vetcomp=(vet_typ1=1); 87 vetsurv=(vet_typ2=1); ** new in extracts; 88 vetpens=(vet_typ3=1); ** new in extracts; 89 veteduc=(vet_typ4=1); 90 vetothr=(vet_typ5=1); 91 vetqva=(vet_qva=1); 92 anyva=(vet_yn=1); 93 94 ** other federal **; 95 96 fgdi=((dis_sc1=3) or (dis_sc2=3)); 97 mildi=((dis_sc1=4) or (dis_sc2=4)); 98 usrrdi=((dis_sc1=6) or (dis_sc2=6)); 99 100 /* afdc=(paw_typ=1); */ 101 102 afdc=0; 103 104 otherfed=((fgdi=1) or (mildi=1) or (usrrdi=1) or (afdc=1)); 105 106 ** classifications **; 107 108 anyfed=( (oasdissi=1) or (anyva=1) or (otherfed=1) ); 109 meanstst=( (oasdissi=1) or ((anyva=1) and (vetqva=1)) or (afdc=1) ); 110 111 label anyfed='any federal stipend' 112 meanstst='means-tested stiped'; 113 114 *****************; 115 ** instruments **; 116 *****************; 117 118 *>narrow: vetcomp; 119 120 vetcomp2=( (vetcomp=1) or ((fgdi=1) or (mildi=1) or (usrrdi=1)) ); 121 vetcomp3= ( (anyva=1) and (vetqva=0)); 122 123 label vetcomp='receives vets compensation' 124 vetcomp2='vetcomp or fed except afdc' 125 vetcomp3='vetcomp or vet educ'; 126 127 ************************; 128 *** new demographics ***; 129 ************************; 130 131 married=(1<=marital<=3); 132 widowed=(marital=4); 133 divsep=(5<=marital<=6); 134 veteran=(1<=vet<=5); 135 vietserv=(vet=1); 136 koraserv=(vet=2); 137 othrserv=(3<=vet<=5); 138 139 *************************; 140 *** working data step ***; 141 *************************; 142 143 trend=(year-87); 144 trend2=trend**2; 145 dis_yr92=(year=92)*disabl1; 146 dis_yr93=(year=93)*disabl1; 147 dis_yr94=(year=94)*disabl1; 148 dis_yr95=(year=95)*disabl1; 149 dis_yr96=(year=96)*disabl1; 150 dis_yr97=(year=97)*disabl1; 151 152 dyr_9497=disabl1*(94<=year<=97); 153 154 yr89=(year=89); yr90=(year=90); yr91=(year=91); 155 yr92=(year=92); yr93=(year=93); yr94=(year=94); 156 yr95=(year=95); yr96=(year=96); yr97=(year=97); 157 158 trend_d=trend*disabl1; 159 160 age2=age**2; 161 162 posths=(someco=1 or colgrad=1); 163 164 south=(5=