/* THIS is the file containing all created variables for the Thai Community Questionnaire: COMMVAR.SAS Last updated: 7/5/98 */ /* Getting rid of 'bad' numbers */ if ctlpop1 = 9998 then ctlpop1 = . ; if cmpop1 = 998 then cmpop1 = . ; if cfpop1 = 998 then cfpop1 = . ; if ctlpop2 = 9998 then ctlpop2 = . ; if cmpop2 = 998 then cmpop2 = . ; if cfpop2 = 998 then cfpop2 = . ; if ctlpop3 = 9998 then ctlpop3 = . ; if cmpop3 = 998 then cmpop3 = . ; if cfpop3 = 998 then cfpop3 = . ; if cq4 = 9999 then cq4 = .; /* CREATED VARIABLES ******************** */ /* 1. COMMUNITY SETTING: page 1*/ ctlpop = ctlpop1 + ctlpop2 + ctlpop3; label ctlpop = 'Total population (where available)'; if 0 = 8 then rc3 = 3; if thc1 =99 then rc3 = .; /* effect of distance to health center */ if thc3 = . then rc2 = .; if thc3 = 1 then rc2 = 0; if thc3 = 2 | thc3 = 3 then rc2 = 1; if thc3 = 4 | thc3 = 5 then rc2 = 2; if thc3 = 6 | thc3 = 7 then rc2 = 3; if thc3 = 9 then rc2 = .; /* effect of time taken to reach health center */ rc = sum (rc1, rc3); label rc = 'Cost of fertility regulation'; rc_old = sum(score2, score3);