Averaging hourly data

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

TracyW
Posts: 7
Joined: Fri Aug 20, 2010 7:49 am

Averaging hourly data

Postby TracyW » Thu Apr 03, 2014 8:45 am

Hi,
I'm using Eviews 8. I have a lot of hourly data showing power demand for multiple years. I'd like to look at things like the average demand for each hour in a given month (eg the average of the hourly demand from 1 April to 30 April for 1am, 2am, 3am .... etc) or a season, or a year. I've read the data in as hourly data into Eviews, and I have the date-time, but now I can't figure out how to tell Eviews to show me an average over a set number of days. Can someone please help?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Averaging hourly data

Postby EViews Gareth » Thu Apr 03, 2014 8:53 am

Create a new group containing @year @month @hour

Code: Select all

group g @year @month @hour
Then open up your series, click on View->Descriptive Statistics->Stats by classification and then enter the name of the group in the series/group to classify by box.

If you only have data for one year you can drop the @year bit from the group.

TracyW
Posts: 7
Joined: Fri Aug 20, 2010 7:49 am

Re: Averaging hourly data

Postby TracyW » Fri Apr 04, 2014 1:05 am

Thank you for the quick reply.

TracyW
Posts: 7
Joined: Fri Aug 20, 2010 7:49 am

Re: Averaging hourly data

Postby TracyW » Fri Apr 04, 2014 1:29 am

I worked out that if I reversed your order to @hour @month @year I could get the hours all nicely lined up next to each other, by month.

TracyW
Posts: 7
Joined: Fri Aug 20, 2010 7:49 am

Re: Averaging hourly data

Postby TracyW » Mon Apr 14, 2014 2:43 am

Can I graph this data within Eviews?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Averaging hourly data

Postby EViews Gareth » Mon Apr 14, 2014 8:08 am

What do you mean?


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest