I am trying to make variables for heart disease, diabetes, etc. using ICD 9 data, but stata seems to reject the fact that there are decimals and ranges in the form I am using. Below are the codes I was given
295-299 301 306 308-309 311-314 316 293(8 9) (295-296)(0-9) 297(1-3 8-9) 298(1-4 8-9) 299(0-1 8-9) (301 302 306)(0-9) 307(1-8) 308(0-4 9) (309 313)(0-4 8-9) 310(1) 312(1-4 8) 314(0-2 8-9) 648(4) 293.8(1-4 9) 295(0-9)(0-5) 296(0-6)(0-6) 296.8(0-2 9) 296.9(0 9) 299(0-1 8-9)(0-1) 300.0(0-2 9) 300.1(0-6 9) 300.2(0-3 9) 300.8(1-2 9) 301.1(0-3) 301.2(0-2) (301.5 307.8)(0-1 9) 301.8(1-4 9) 302.5(0-3) (302.7 307.4)(0-9) 302.8(1-5 9) 306.5(0-3 9) 307.2(0-3) 307.5(0-4 9) 309.2(1-4 8-9) 312(0-2)(0-4) 312.3(0-5 9) 312.8(1-2 9) 313.2(1-3) 313.8(1-3 9) 314.0(0-1) 648.4(0-4) E950-E959 E950(0-9) E951(0-1 8) 95(2 3) (0-1 8-9) (955 958) (0-9) 957(0-2 9) V40(2 3) V403(1 9) V409 V628.4 V673
How do I enter these correctly? It has worked for other variables with no decimals but I need to include the decimals
295-299 301 306 308-309 311-314 316 293(8 9) (295-296)(0-9) 297(1-3 8-9) 298(1-4 8-9) 299(0-1 8-9) (301 302 306)(0-9) 307(1-8) 308(0-4 9) (309 313)(0-4 8-9) 310(1) 312(1-4 8) 314(0-2 8-9) 648(4) 293.8(1-4 9) 295(0-9)(0-5) 296(0-6)(0-6) 296.8(0-2 9) 296.9(0 9) 299(0-1 8-9)(0-1) 300.0(0-2 9) 300.1(0-6 9) 300.2(0-3 9) 300.8(1-2 9) 301.1(0-3) 301.2(0-2) (301.5 307.8)(0-1 9) 301.8(1-4 9) 302.5(0-3) (302.7 307.4)(0-9) 302.8(1-5 9) 306.5(0-3 9) 307.2(0-3) 307.5(0-4 9) 309.2(1-4 8-9) 312(0-2)(0-4) 312.3(0-5 9) 312.8(1-2 9) 313.2(1-3) 313.8(1-3 9) 314.0(0-1) 648.4(0-4) E950-E959 E950(0-9) E951(0-1 8) 95(2 3) (0-1 8-9) (955 958) (0-9) 957(0-2 9) V40(2 3) V403(1 9) V409 V628.4 V673
How do I enter these correctly? It has worked for other variables with no decimals but I need to include the decimals
Comment