Hi,
I have a daily dataset, but the number of observations per month differs.
I want to calculate the sum of all observations that belong to a certain month (the result should be that I have one number per month). Is there an easy way to do this in EViews?
Thanks in advance!
Summing observations per month
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13584
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Summing observations per month
Code: Select all
series monthsums = @sumsby(y, @datefloor(@date, "mm"))
Re: Summing observations per month
Fantastic, just what I needed, thanks a lot! :)Code: Select all
series monthsums = @sumsby(y, @datefloor(@date, "mm"))
Who is online
Users browsing this forum: No registered users and 1 guest
