Hallo,
I have have a little problem and would be thankful if anyone could help me.
My dataset contains date in form of e.g. (19800229) and i want to extract the year (for this example 1980).
I already tried the command
gen fyear=year( fiscal_year_end)
but I just get missing values.
I think its because Stata can´t ready the format.
It would be great if anyone can help me.
Thanks in advance.
Best regards
Jana
Related Posts with Extract year from Date
Unobserved Componenet Model and State Space ModelDear All I am try trying to construct an index, using Unobserved Component Model (UCM) and State Sp…
How to extract a country specific value for each country in a panel data setI have a panel date set wich consists of 49 countries and want to extract fed funds rate for each co…
covariance structure in mixed modelDear all, I've been having problems selecting the correct covariance structure and for my mixed mod…
How to save graphs from loop in particular folderHow to save graphs from loop in a particular folder. I have my out foder: global MY_OUT "C:\Users…
Not concave issue with multinomiallogit regressionDear Satalis, I hope you are well. I would like to ask please regarding the problem of 'not concave…
Subscribe to:
Post Comments (Atom)
0 Response to Extract year from Date
Post a Comment