I have a series which is cumulative monthly data (that is, Jan is Jan's data, Feb is the sum of Jan and Feb, and so on). What is the best way to convert it to non-cumulative monthly data? Thanks.
Also, a separate question: what is the command in Eviews to create a index, say Jan 2006=100? Thanks so much.
Convert ytd data to monthly data
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
Re: Convert ytd data to monthly data
series z = d(your_series)I have a series which is cumulative monthly data (that is, Jan is Jan's data, Feb is the sum of Jan and Feb, and so on). What is the best way to convert it to non-cumulative monthly data?
z(1) = your_series(1)
series z_ind = 100*your_series/@elem(your_series,"2006M01")what is the command in Eviews to create a index, say Jan 2006=100?
-
spaceniuzai
- Posts: 6
- Joined: Tue Aug 31, 2010 6:28 am
Re: Convert ytd data to monthly data
trubador: thanks a lot for your help. The second question is solved (I was thinking the same approach but was wondering if there is a simpler command to do it, like rebase( ) :)
However, with regard to my first question, the problem remains. My data is multi-year data, so if I replace z(1)=series(1), only Jan of the first year is corrected. Januarys for the remaining years are still incorrect (being equal to Jan minus last Dec ytd). Any suggestions? Thanks!
However, with regard to my first question, the problem remains. My data is multi-year data, so if I replace z(1)=series(1), only Jan of the first year is corrected. Januarys for the remaining years are still incorrect (being equal to Jan minus last Dec ytd). Any suggestions? Thanks!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Convert ytd data to monthly data
Code: Select all
series z = @recode(@month=1,y,d(y))
For what it is worth, to go the other way (i.e. from levels to year-to-date), you could do:
Code: Select all
series y = @recode(@month=1,z,z+y)
-
spaceniuzai
- Posts: 6
- Joined: Tue Aug 31, 2010 6:28 am
Re: Convert ytd data to monthly data
Eviews Gareth: thank you so much! It really helps.
Where y is the series that contains year-to-date, and z is the series you want to contain levels.Code: Select all
series z = @recode(@month=1,y,d(y))
For what it is worth, to go the other way (i.e. from levels to year-to-date), you could do:Code: Select all
series y = @recode(@month=1,z,z+y)
-
EViewsUserMark
- Posts: 1
- Joined: Fri Sep 17, 2010 6:57 am
Re: Convert ytd data to monthly data
I have a series with yearly data and I want to convert it to monthly data.
It's for a regression and when you take the dlog you get no growth rates (because it's the same number for 12 months).
My question is: How do I convert my yearly data to monthly data?
Thanks!
It's for a regression and when you take the dlog you get no growth rates (because it's the same number for 12 months).
My question is: How do I convert my yearly data to monthly data?
Thanks!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Convert ytd data to monthly data
Create a monthly page in the same workfile, then copy the yearly data over to the monthly page.
Who is online
Users browsing this forum: No registered users and 2 guests
