Hi everyone,
I generated a sample of 500 standard nomally distributed random variables, Z_t, and now I am trying to generate the following process:
X_t=0.8X(-1)-1+Z_t
Before, I have already generated a MA(2) process with series:
series Y_t=Z+2*Z_t(-1)+Z_t(-2)
and I tried to proceed in a similar fashion for X_t:
series X_t=0.8X(-1)-1+Z_t
However all the entries are empty. I have created the process X_t in Matlab already without problems, but here it does not seem to work.
Can anyone help?
Thank you,
Tartaglia
AR(1) ARMA(1,0)
Moderators: EViews Gareth, EViews Moderator
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
AR(1) ARMA(1,0)
Did you set the first value of X to a seed value?
Re: AR(1) ARMA(1,0)
I did not, do you mean to set X_0 equal to 0 (or a random value)?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
AR(1) ARMA(1,0)
Indeed.
Re: AR(1) ARMA(1,0)
I am not quite sure how to do that, since X does not exist yet.
Re: AR(1) ARMA(1,0)
I just tried to fill the whole series with zeros and set the first value to 1, using
series X_tc=0
X_tc.fill(l) 1 2
which gives me a whole series full of zeros, and an error message, that there is a syntax error in the 'fill' line.
series X_tc=0
X_tc.fill(l) 1 2
which gives me a whole series full of zeros, and an error message, that there is a syntax error in the 'fill' line.
Re: AR(1) ARMA(1,0)
I just tried the following commands:
series X_tc=0
series X_tc(+1)=0.8*X_tc+Z_t
which seemed to work as far as creating the series. Does this represent my actual series though?
series X_tc=0
series X_tc(+1)=0.8*X_tc+Z_t
which seemed to work as far as creating the series. Does this represent my actual series though?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: AR(1) ARMA(1,0)
The standard way to do it would be this:
Code: Select all
series x_tc = 0
smpl @first+1 @last
x_tc = 0.8*x_tc(-1) + z_t
smpl @all
Re: AR(1) ARMA(1,0)
I see. would both approaches give me the same result (I just plotted both and they look very similar).
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
AR(1) ARMA(1,0)
With yours, xt depends on the lagged values of zt.
Re: AR(1) ARMA(1,0)
Oh of course, I missed that (getting late here), thanks so much for your quick help!!
Who is online
Users browsing this forum: No registered users and 2 guests
