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
one sided test of proportions using svyI am trying to do a one sided test of proportions with survey data. I've svyset the data. Normally I…
Is beta regression model best for panel data type of data?Hello everyone, I am a newly registered member here, but I have been using this site already for th…
Checking merges over a very large number of filesMy apologies in advance if this has been covered - I have looked but haven't found anything quite th…
How to construct a new variable by singling out one or more words from a longer phrase?I want to have a new variable which is constructed by taking out one or more words after "Battle of …
endogeneityDear researchers, I am using the generalized DID model “Two way-fixed effect”. I have more than two …
Subscribe to:
Post Comments (Atom)
0 Response to Type mismatch
Post a Comment