Hello,
I'm facing trouble telling stata the format of my time variable.
My time variable "time" has the format:
- 200201 (for jan. 2002)
-200202 (for feb. 2002)
Besides quite a few other options, I've tried the code:
generate time2 = monthly(time, "YM")
But it creats nothing but missings...
Can anybody help me?
Beste regards,
Nicolas
Related Posts with datetime translation
destringingHello, I was wondering if anyone could help me destring certain variable in my dataset. I have a var…
is it possible to do a repeated Measures ANOVA without case identifierHi all, I am currently using a Qualtrics platform survey to measure the perceived social consensus …
defining perfect sequence pairs and average non-perfect pairs of dataDear all, In the data structure below I have a perfect sequences Buy (B) Sell (S). Sometimes Buy or…
Merging two databases. With different dates. Best method?Dear members, These days I am working on my (master) thesis and I am working with Stata in order t…
Labeling multiple variables using the foreach loopI am trying to learn the foreach loop command in Stata 13.0. I want to label multiple variables usin…
Subscribe to:
Post Comments (Atom)
0 Response to datetime translation
Post a Comment