I have a date in the following iso format:
ISODATE
2017-09-01 10:43:04.000
The format is Stata is: %tcCCYY-NN-DD_HH:MM:SS.sss
I'm trying to extract out the month but haven't been able to make it work.
I tried various forms such as:
gen month=month(ISODATE)
Appreciate some help here. thanks.
Related Posts with How to extract month from an iso date?
Panel data regression GLS error*Dear Members! Please could you help me to understand the reason for this: xtrc AVRG_GNI ROA ROE OS…
Small N and large T panel analysisHi! I am using panel data with N=6 and monthly data from 2000 to 2017 i.e., T=216. The specific indu…
Replace missings in an unbalanced panel CONDITIONAL on year and firm IDHello everyone, I am new to Statalist and have an issue with filling up missings in a panel data set…
Correcting autocorrelation by adding year dummy variables?Hello everybody! For my master dissertation, I'm dealing with panel data. In addition, I detected h…
F test xtreg, fe indicates pooled OLS is better. What are the consequences for fe?Hello, I am running a fixed effects model on an unbalanced dataset. I cannot reject the null hypoth…
Subscribe to:
Post Comments (Atom)
0 Response to How to extract month from an iso date?
Post a Comment