I just uploaded someone's Excel datafile, and there are a bunch of categorical variables which are numbered in Excel but show up in Stata as string. When I "destring" the variables this is the error message I get:
Age: contains nonnumeric characters; no replace
Race: contains nonnumeric characters; no replace
Ethnicity: contains nonnumeric characters; no replace
RaceEthnicityCoding: contains nonnumeric characters; no replace
PatientStatus: contains nonnumeric characters; no replace
Barrier: contains nonnumeric characters; no replace
Is it because the Excel cells include blank spaces? If so, how do I fix this? All ideas appreciated thank you!
Age: contains nonnumeric characters; no replace
Race: contains nonnumeric characters; no replace
Ethnicity: contains nonnumeric characters; no replace
RaceEthnicityCoding: contains nonnumeric characters; no replace
PatientStatus: contains nonnumeric characters; no replace
Barrier: contains nonnumeric characters; no replace
Is it because the Excel cells include blank spaces? If so, how do I fix this? All ideas appreciated thank you!
Comment