Does anyone know how to easily overlay two series?
I would apprecaite any help.
Rgds, Krzysztof
overlay two series
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13586
- Joined: Tue Sep 16, 2008 5:38 pm
Re: overlay two series
You'll have to be more precise as to what you mean by that.
Re: overlay two series
Sure, nor problem, below there is a hypothetical example:
Assume that the annual time series A has the values 1, 2, NC, and 4 for the years 1987 to 1990 and that the annual series B has the values NA, 6, 7, and 8 for the same period.
I would like to have a function (or find any way) which would return the series 1, 2, 7 and 4. > series B overlaid with series A
I would be desirable that the solution works both ways to return the series 1, 6, 7 and 8. > series A overlaid with series B
Many thanks in advance, k
Assume that the annual time series A has the values 1, 2, NC, and 4 for the years 1987 to 1990 and that the annual series B has the values NA, 6, 7, and 8 for the same period.
I would like to have a function (or find any way) which would return the series 1, 2, 7 and 4. > series B overlaid with series A
I would be desirable that the solution works both ways to return the series 1, 6, 7 and 8. > series A overlaid with series B
Many thanks in advance, k
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13586
- Joined: Tue Sep 16, 2008 5:38 pm
Re: overlay two series
You can use the @recode function for this:
or
Code: Select all
series c = @recode(a=na,b,a)
Code: Select all
series c = @recode(b=na,a,b)
Re: overlay two series
works perfectly, many thanks
Who is online
Users browsing this forum: No registered users and 2 guests
