Dear Stata users,
I am experiencing problems in importing a variable from a csv file. This variable values contains #, %, numbers and strings (example "1MISE#CSEE-N0115-CZ-1"). The problem is that these are imported all as numeric missing values. My guess is that special characters (# - %) cause the problem. Do you have a fix for this? My idea is to modify all csv's using other programs but I would rather do this directly importing the variable directly in Stata. I am currently using Stata14.
Thank you in advance for your answer.
Related Posts with Importing variable with special characters, strings and numbers
recovering latitude and longitude of the observations having distances to a specific pointsHello, I am dealing with a problem and I hope you can help me. I have 8000 observations from Germany…
Collinearity problem DiDHello, I have this data. I'm trying to run a placebo DiD. Pre-treatment =2018. Some of the drugs go…
STATA does NOT allow me to stratify for a variable in a frailty model. How to fix?Dear all, I have a question regarding a survival analysis. I thank you all in advance. I have to co…
Problem with Mundlak approachDear all, I am pretty new to Stata and just beginning my research journey. I am trying to estimate…
Store estimates of a loop using a reghdfe regressionHello everyone, I am trying to store estimates of a (reghdfe) regression in a loop. The regressions…
Subscribe to:
Post Comments (Atom)
0 Response to Importing variable with special characters, strings and numbers
Post a Comment