I read a post http://www.stata.com/statalist/archi.../msg00541.html that keeping date variables as strings can be problematic.
Could someone explain to me a bit more specifically why that could be the case?
Says in the past post that I have to worry about precision and potential hiatuses?
But I couldn't really understand what that meant..
The date variables I use are
year and yearmonth.
Both are string variables.
year takes on 2009, 2010, 2011, 2012....and on
yearmonth takes on 200901, 200902, 200903....and on.
I have not encountered any problems in running my data as of yet but wanted to prevent problems from occurring in the future.
Thanks!
Could someone explain to me a bit more specifically why that could be the case?
Says in the past post that I have to worry about precision and potential hiatuses?
But I couldn't really understand what that meant..
The date variables I use are
year and yearmonth.
Both are string variables.
year takes on 2009, 2010, 2011, 2012....and on
yearmonth takes on 200901, 200902, 200903....and on.
I have not encountered any problems in running my data as of yet but wanted to prevent problems from occurring in the future.
Thanks!
Comment