Hi all,
I am working with large data set with more than 6000 obs. Currently, I am having difficulty in sorting out why string variable is loosing precision - the variable of my interest is string (v2) because it includes entries mixed with special characters and numbers.
Issue 1: when i import "X_ar" file, variable v2 loose precision - I want to import "v2" variable as it is in in excel file X_ar
Issue 2: when i export imported data set into excel, again it gives me output of variable v2 without precision - I want v2 variable (exported in excel file "X") same as it is in file X_ar. I also think if we are able to solve out issue 1, most probably issue 2 will be resolved automatically
Please the excel and dofile attached.
Note: I am using STATA 12
I am working with large data set with more than 6000 obs. Currently, I am having difficulty in sorting out why string variable is loosing precision - the variable of my interest is string (v2) because it includes entries mixed with special characters and numbers.
Issue 1: when i import "X_ar" file, variable v2 loose precision - I want to import "v2" variable as it is in in excel file X_ar
Issue 2: when i export imported data set into excel, again it gives me output of variable v2 without precision - I want v2 variable (exported in excel file "X") same as it is in file X_ar. I also think if we are able to solve out issue 1, most probably issue 2 will be resolved automatically
Please the excel and dofile attached.
Note: I am using STATA 12
Comment