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
Re-elaboration of string variableHi all, my data look as follows: Code: * Example generated by -dataex-. For more info, type help …
Johansen Cointegration TestGood evening, I have a question regarding the Johansen cointegration test in Stata. I have two month…
Reshape dataset with format "variable:value"Hello everyone, I have a dataset in the format "variable : value" (see also the following example).…
Q - A problem with qregpd: a Quantile Regression in an Unbalanced Panel Data setHi everyone, I am trying to perform a Quantile Regression with an unbalanced panel data set, to fin…
Calculating censorship date for survival analysisI'm doing survival analysis and trying to calculate the end of follow-up date for each patient. Foll…
Subscribe to:
Post Comments (Atom)
0 Response to datetime translation
Post a Comment