Hi there, I hope you are keeping well. I am sorry to bother you but really need help with this due to is the last part of my dissertation.
I need to create a new serie "z" which is the difference between "x" and "y" series. However, the series "x" and "y" have different size. "x" from observation 1 to observation 5222, but really it contains values from 1 to 504 (from 505 ahead, NA). On the other hand, "y" has observations from 23 to 5222 (between 1 and 22, NA). So, my problem is that I need to create a serie "z" taking the difference of 504 observations between "x" and "y" but considering that this 504 observation must be the last 504 observations of "y" (from 4719 to 5222=504). So far, I have created "z" with wrong values. I have tried to do the following in order to capture only the relevant observation of the serie "y" but is not working:
y.sheet
smpl 4719 5222
series z=x-y
Please find attached the files. Really I need your support.
all the best
MS
operation series different size
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
operation series different size
- Attachments
-
- eviews question.wf1
- workfile
- (260.02 KiB) Downloaded 204 times
-
- eviews question.prg
- code
- (118 Bytes) Downloaded 254 times
-
- EViews Developer
- Posts: 560
- Joined: Thu Apr 25, 2013 7:48 pm
Re: operation series different size
Hello,
It sounds like you can create the series you want via "series z = x(-4718) - y" with no sample applied. This place the non-NA results of the difference at the end of series z (observations 4719 through 5222). If you'd like the results at the beginning of series z, instead use "series z = x - y(4718)".
It sounds like you can create the series you want via "series z = x(-4718) - y" with no sample applied. This place the non-NA results of the difference at the end of series z (observations 4719 through 5222). If you'd like the results at the beginning of series z, instead use "series z = x - y(4718)".
Who is online
Users browsing this forum: No registered users and 23 guests