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
xtabond2 GMM: No Observation ErrorHi, I have an unbalanced panel comprising of data from the years 2005 and 2011. I am trying to run …
Partial F Test or Chow TestStata users I've been searching for a long time. How I can I perform an partial f test in stata? …
Common Method BiasDear all, I would like to check likely common method bias in my survey data (using Stata's SEM modu…
Graphs for Difference-in-Difference estimationI have a pooled cross-section dataset of 788 firms for the period of 2006-2017. There was an exogeno…
How to create an index variable and analyze i vs. i - 1 (long data)How could I create a variable called test_index to enumerate (from 1 to ...) the tests for each reco…
Subscribe to:
Post Comments (Atom)
0 Response to Type mismatch
Post a Comment