Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Type mismatch

    I keep getting a 'type mismatch' error and I'm stumped. All feedback would be greatly appreciated!


    egen ICD10 = group(I10_DX1 I10_DX2 I10_DX3 I10_DX4 I10_DX5 I10_DX6 I1
    > 0_DX7 I10_DX8 I10_DX9 I10_DX10)
    (3,363,241 missing values generated)

    .
    . generate pneumonia = 1 if ICD10=="J120" ICD10=="J121" ICD10=="J122" I
    > CD10=="J123" ICD10=="J1281" ICD10=="J1289" ICD10=="J129" ICD10=="J13"
    > ICD10=="J14" ICD10=="J150" ICD10=="J151" ICD10=="J1520" ICD10=="J152
    > 11" ICD10=="J15212" ICD10=="J1529" ICD10=="J153" ICD10=="J154" ICD10=
    > ="J155" ICD10=="J156" ICD10=="J157" ICD10=="J158" ICD10=="J159" ICD10
    > =="J160" ICD10=="J168" ICD10=="J17" ICD10=="J180" ICD10=="J181" ICD10
    > =="J182" ICD10=="J188" ICD10="J189"
    type mismatch
    r(109);

Working...
X