I imported several csv files with "birthdate" as one of the variables into Stata and then I appended the files to produce one dataset. However, dates from some of the constituent datasets did not show up at all.
To solve this problem, I used the command "tostring birthdate" before appending The hitherto missing dates now show up but as figures, some positive, others negative.
I have tried various manipulations, but these dates do not convert to the actual birthdates from the csv files.
After formatting as dates, they mostly default to 1960 as the birth year. But that is not the birthday in the original file.
Please kindly help me solve this problem.
Related Posts with Dates from Excel/CSV not correctly displaying in Stata
Extracting a subset of a varlist using wildcards such as *I am writing a command which takes a varlist as anargument. The variables correspond to different dr…
Combine the values of several obserationsDear Stata users, Can someone help me to combine data of same month but different dates into one. …
Ramsey Test - ARDL ModelHi Everyone, My ardl model has passed every test (eg Jarque-Bera normality test, White test and LM …
Combine the values of several obserationsDear Stata users, Can someone help me to combine data of same month but different dates into one. …
system limit exceeded - see manual r(1000); While using odkmeta to merge ODK data setDear statalist, I was using the packege odkmeta for merging ODK datasets. I am using ODK briefcase …
Subscribe to:
Post Comments (Atom)
0 Response to Dates from Excel/CSV not correctly displaying in Stata
Post a Comment