extract year of each observation from series
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
extract year of each observation from series
I have a series with date entries. The data is "unstructured" and therefore not sorted by this date series. How do I extract the year and/or the month of each observation? As a result I would like to get self-updating series, containing the year and month of the observation in one or two separate series, so that I can input them as dummy variables into equations. The dates are in the format "yyyy-mm-dd".
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- Joined: Tue Sep 16, 2008 5:38 pm
Re: extract year of each observation from series
A combination of the @datepart and, possibly, @datestr and @dateval functions.
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 18 guests