proc format; value ins_type 1 = "Private" 2 = "Medicaid/schip/state" 3 = "other" 4 = "uninsured" 5 = "dk/ref" ; data ; set (keep = caseid cover12 -- nowcover03 finalwgt); wgt1000 = finalwgt/1000; Curr_ins = .; if nowcover01 in (98 99) then Curr_ins = 5; /*dk/ref current ins*/ else if cover12 = 1 and numnocov = 12 then Curr_ins = 4; /*uninsur all 12 months*/ else if nowcover01 = 11 then Curr_ins = 4; /*uninsured now*/ else if cover12 = 5 then do; /*covered all 12 mos */ if coverhow02 = . then do; /*only one ins mentioned*/ if coverhow01 in (1 4) then Curr_ins = 1; /*private Insurance */ else if coverhow01 in (2 7 9) then Curr_ins = 2; /*government ins */ else if coverhow01 in (3 5 10) then Curr_ins = 3; /*other ins */ else if coverhow01 in (98 99) then Curr_ins = 5; /*dk/ref*/ else Curr_ins = 4; /*uninsured*/ end; else if coverhow02 ^= . then do; /*more than one ins mentioned*/ if nowcover01 in (1 4) or nowcover02 in (1 4) or nowcover03 in (1 4) then Curr_ins = 1; /*private Insurance */ else if nowcover01 in (2 7 9) or nowcover02 in (2 7 9) or nowcover03 in (2 7 9) then Curr_ins = 2; /*government ins */ else if nowcover01 in (3 5 10) or nowcover02 in (3 5 10) or nowcover03 in (3 5 10) then Curr_ins = 3; /*other ins */ else Curr_ins = 4; /*uninsured*/ end; end; else /*more than one ins mentioned*/ if nowcover01 in (1 4) or nowcover02 in (1 4) or nowcover03 in (1 4) then Curr_ins = 1; /*private Curr_ins */ else if nowcover01 in (2 7 9) or nowcover02 in (2 7 9) or nowcover03 in (2 7 9) then Curr_ins = 2; /*government ins */ else if nowcover01 in (3 5 10) or nowcover02 in (3 5 10) or nowcover03 in (3 5 10) then Curr_ins = 3; /*other ins */ else Curr_ins = 4; /*uninsured*/ label Curr_ins = "Current insurance categories"; format Curr_ins ins_type.; run; /********************************************************************************/ /*Unweighted frequencies - male data */ /* */ /* CURR_INS CATEGORIES */ /* */ /* Cumulative Cumulative */ /* CURR_INS Frequency Percent Frequency Percent */ /*ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ */ /*PRIVATE 3101 62.93 3101 62.93 */ /*MEDICAID/SCHIP/STATE 370 7.51 3471 70.43 */ /*OTHER 250 5.07 3721 75.51 */ /*UNINSURED 1114 22.61 4835 98.11 */ /*DK/REF 93 1.89 4928 100.00 */ /* */ /* */ /*Weighted frequencies - male data */ /* */ /* CURR_INS CATEGORIES */ /* */ /* Cumulative Cumulative */ /* CURR_INS Frequency Percent Frequency Percent */ /*ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ */ /*PRIVATE 41658.31 68.13 41658.31 68.13 */ /*MEDICAID/SCHIP/STATE 3392.164 5.55 45050.47 73.68 */ /*OTHER 2561.295 4.19 47611.76 77.86 */ /*UNINSURED 12628.6 20.65 60240.36 98.52 */ /*DK/REF 906.6571 1.48 61147.02 100.00 */ /********************************************************************************/