Hi there,
I attempted to identify my issue in the archives with no luck. I appreciate your helpful comments. I am confused with out output of my PhysCode variable. The original variable is primarycarecode, and I used encode PhysCode, gen(PhysCode) to create the PhysCode variable. As you may notice by the header, the original file is .csv, and I imported that into Stata. I ensured the variable format was set to general in excel prior to importing.
The problem appears that my PhysCode variable in properly storing my code(s) correctly. For example, using the bold example below it is my understanding, Stata reads code "50024155" as "1461".
Thanks again for your assistance for properly formatting in Stata.
-Adam
codebook primarycarecode PhysCode
-----------------------------------------------------------------------------------------------------------------------------------
primarycarecode Primary Care Code
-----------------------------------------------------------------------------------------------------------------------------------
type: string (str10)
unique values: 6,915 missing "": 15,121/139,561
examples: "50014385"
"50032165"
"50047861"
"50066131"
-----------------------------------------------------------------------------------------------------------------------------------
PhysCode Primary Care Code
-----------------------------------------------------------------------------------------------------------------------------------
type: numeric (long)
label: PhysCode
range: [1,6915] units: 1
unique values: 6,915 missing .: 15,121/139,561
examples: 1461 50024155
2971 50040123
4542 50058039
6301 50095422
I attempted to identify my issue in the archives with no luck. I appreciate your helpful comments. I am confused with out output of my PhysCode variable. The original variable is primarycarecode, and I used encode PhysCode, gen(PhysCode) to create the PhysCode variable. As you may notice by the header, the original file is .csv, and I imported that into Stata. I ensured the variable format was set to general in excel prior to importing.
The problem appears that my PhysCode variable in properly storing my code(s) correctly. For example, using the bold example below it is my understanding, Stata reads code "50024155" as "1461".
Thanks again for your assistance for properly formatting in Stata.
-Adam
codebook primarycarecode PhysCode
-----------------------------------------------------------------------------------------------------------------------------------
primarycarecode Primary Care Code
-----------------------------------------------------------------------------------------------------------------------------------
type: string (str10)
unique values: 6,915 missing "": 15,121/139,561
examples: "50014385"
"50032165"
"50047861"
"50066131"
-----------------------------------------------------------------------------------------------------------------------------------
PhysCode Primary Care Code
-----------------------------------------------------------------------------------------------------------------------------------
type: numeric (long)
label: PhysCode
range: [1,6915] units: 1
unique values: 6,915 missing .: 15,121/139,561
examples: 1461 50024155
2971 50040123
4542 50058039
6301 50095422
Comment