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
Building a fraction variable cumulativelyDear all users of Statalist, I have a question about how to build a variable of cumulative fraction…
Comparing variable scoresI'm looking to do a simple comparison of pre- and post-treatment scores on a clinical self-report me…
Multiple testing cox proportional hazards modelHi everyone, I'm running a cox proportional hazards model and testing multiple exposures. Instead o…
How to export a table into latexDear Stata Users, I want to export the correlation table (using "corsp" command) to stata. I use th…
Simple question on OLS & Oaxaca decompositionDear StataList, I would like to ask you a doubt if you would be so kind to respond. I calculated an…
Subscribe to:
Post Comments (Atom)
0 Response to datetime translation
Post a Comment