/* Replication Program: Green, Strolovitch, and Wong (in press) "Defended Neighborhoods, Integration, and Racially Motivated Crime" American Journal of Sociology Labels for original variables: lbl = { COMMNUM,TOT80,TOT90,PW80,PW90, PB80,PB90,PH80,PH90,PA80, PA90,W_HC,B_HC,H_HC,A_HC, UNEM80,UNEM90,nhwu80,nhwu90,seg80, seg90,brx,byn,man,qun, sta,chngwht,chngblk,chngasn,chnghsp, xblk,xasn,xhsp, a_ah,a_h,a_m,a_o,a_p,a_v, b_ah,b_h,b_m,b_o,b_p,b_v, g_ah,g_h,g_m,g_o,g_p,g_v, h_ah,h_h,h_m,h_o,h_p,h_v, j_ah,j_h,j_m,j_o,j_p,j_v, o_ah,o_h,o_m,o_o,o_p,o_v, w_ah,w_h,w_m,w_o,w_p,w_v, a_blk,a_lat,a_wht,b_l_wht, b_asn,b_lat,b_wht,l_asn,l_blk, l_wht,uk_asn,uk_blk,uk_lat,uk_wht, w_asn,w_blk,w_lat,newahc,newbhc,newlhc, COMMDIS, ANHANH, ANHHIS, BNHANH, BNHBNH, BNHHIS, BNHWNH, HISHIS, TOTMAR, WNHANH, WNHHIS, WNHWN, lntot90 }; */ @-----------------------------------------------@ @ Read in Gauss dataset: set DATALOOP on!!! @ dataloop commhc temp; make newa_pc=1000*newahc / tot90; make newl_pc=1000*newlhc / tot90; make newb_pc=1000*newlhc / tot90; make xnhwub =nhwu90*chngblk; make dnhwu =nhwu90-nhwu80; make xdnhub =dnhwu*chngblk; make ratio_a=ln((1000+tot90*pa90)/(1000+tot80*pa80)); make ratioax=pw80*ratio_a; make ratio_h=ln((1000+tot90*ph90)/(1000+tot80*ph80)); make ratiohx=pw80*ratio_h; make ratio_b=ln((1000+tot90*pb90)/(1000+tot80*pb80)); make ratiobx=pw80*ratio_b; keep COMMNUM,TOT80,TOT90,PW80,PW90, PB80,PB90,PH80,PH90,PA80, PA90,W_HC,B_HC,H_HC,A_HC, UNEM80,UNEM90,nhwu80,nhwu90, brx,byn,man,qun, sta,chngwht,chngblk,chngasn,chnghsp, xblk,xasn,xhsp, a_blk,a_lat,a_wht,b_l_wht, b_asn,b_lat,b_wht,l_asn,l_blk, l_wht,uk_asn,uk_blk,uk_lat,uk_wht, w_asn,w_blk,w_lat,newahc,newbhc,newlhc, COMMDIS, ANHANH, ANHHIS, BNHANH, BNHBNH, BNHHIS, BNHWNH, HISHIS, TOTMAR, WNHANH, WNHHIS, WNHWN, lntot90,newa_pc,newl_pc,newb_pc,xnhwub, dnhwu,xdnhub,ratio_a,ratioax,ratio_h, ratiohx,ratio_b,ratiobx; endata; @datalist temp;@ @ uncomment to examine dataset @