create date series?
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
create date series?
Okay, I'm missing something obvious. I have a file with numeric variables Year, Month (1-12), Day (1-31) and time (hrs:min:sec). I want to make a dated workfile. What's the function/proc? And is there an easy way to have an "hourly" workfile?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: create date series?
EViews 7 and 8 support intraday frequencies, including hourly.
Just use Proc->Structure/Resize Current Page, then choose Dated-Specified by Date Series, then enter the names of your series.
Just use Proc->Structure/Resize Current Page, then choose Dated-Specified by Date Series, then enter the names of your series.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: create date series?
Hmmm, if I enter Year Month Day Time I get told "unable to interpret date specification" I assume this is because Year is things like 2005 while Time is in hh:mm:ss format. Is there a way to make a "date series" from my four variables? Or another approach?EViews 7 and 8 support intraday frequencies, including hourly.
Just use Proc->Structure/Resize Current Page, then choose Dated-Specified by Date Series, then enter the names of your series.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: create date series?
So when you said time was a numeric variable, you actually meant it is an Alpha?
Post your workfile
Post your workfile
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: create date series?
No, time is numeric. But EViews autoChrismagically read it in, recognized it, and assigned it the display format hh:mm:ss.
So the first few entries are
20:22:40
20:26:40
20:30:40
or
0.8490740740740741
0.8518518518518519
0.8546296296296296
But they don't include the date. If I display as day time they look like 1/1/0001 20:22:40
So the first few entries are
20:22:40
20:26:40
20:30:40
or
0.8490740740740741
0.8518518518518519
0.8546296296296296
But they don't include the date. If I display as day time they look like 1/1/0001 20:22:40
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: create date series?
Post your workfile
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: create date series?
I did
and then followed your previous suggestion.
Code: Select all
series hour = @datepart(time,"hh")
series minute = @datepart(time,"mm")
series second = @datepart(time,"ss.s")
Who is online
Users browsing this forum: No registered users and 2 guests
