I am a new user and have benefitted a great deal on the posts from the Stata Forum. I have tried to find information about what could be the cause of dates displaying differently on Data Editor. I have a dataset that spans from 2006 to 2016. The variables were written in with capital letters from 2006 to 2010 (e.g. DateofBirth, DateOfInitialCounselling, etc) and from 2011 to 2016 small letters were used (e.g. dateofbirth, dateofinitialcounselling, etc). In addition, date-based variables are numeric for the period 2006 to 2010 and string for 2011 to 2016. The latter has been where my challenge is as when I use the encode command and generate a new variable with formatting the newvar with %td, values displayed show a different date for some cells. For example there is a DateofBirth "22-Apr-72" but on the dateofbirth1 (a new variable) it is "08 Aug 59" but at the top middle value slot that shows the underlying value it shows "22apr1972". Kindly assist.
-
Login or Register
- Log in with
Comment