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
Distance between latent score and lower cutoff after Ordered Probit?Dear colleagues, I have regressed an ordered ordinal outcome y = {1,2,3,4,5,6,8.9,10} on explanator…
Constraints and Convergence in GSEM Hello everyone, I´m working for the first time with gsem (have used sem in the past, but never wit…
About file names case sensitivity in Stata for LinuxHi, all. I have found what seems to me at least an asymmetry in the way Stata deals with files with…
Very Short code ?I'm using Stata 15.1 and I'm trying to replicate an example from the UCLA Statistical consulting sit…
) required r(100) (Hard time changing labels)Hello everyone, I am taking my first course in econometrics and therefore very much an amateur. At…
Subscribe to:
Post Comments (Atom)
0 Response to Extract year from Date
Post a Comment