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);
Related Posts with Type mismatch
Calculating across observations or across variables in panel dataDear Statalist, I am quiet new to Stata (Version 14 SE on Windows 10) and I am facing the following…
Generating variable means with various length within a loopHi everyone, I want to generate several variables measuring the mean of a variable (here it's calle…
Manually created interaction term and ## commandHi, this is my first time using Stata. I would like to include an interaction term in my model: Co…
Random distribution simulation.Dear Statalist users, For my thesis I am trying to replicate a part of this paper. However, I have …
Understanding ATET in Stata teffects with multivalued treatmentThere is something in https://www.stata.com/manuals13/tete...ultivalued.pdf that I simply don't foll…
Subscribe to:
Post Comments (Atom)
0 Response to Type mismatch
Post a Comment