Hi there,
I have simulated an ma(2) process using the following code:
smpl @all
series e=nrnd
smpl @first+2 @last
series y=0.7-2*e(-1)+1.35*e(-2)+e
However, when I tried to estimate it with the following code:
y c ma(1) ma(2)
I was not able to recover the original regression coefficients.
Can anyone help me with this? I have spent a considerable amount of time looking for related information on the internet but I was not able to find anything related to this. Thank you very much!
Simulated ma(2) process but don't know how to estimate it
Moderators: EViews Gareth, EViews Moderator
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Simulated ma(2) process but don't know how to estimate i
Those MA coefficients may not be invertible. Try it with different coefficients. And how large was your sample?
Re: Simulated ma(2) process but don't know how to estimate i
Is it that sometimes MA coefficients are not invertible? That's good to know.Those MA coefficients may not be invertible. Try it with different coefficients. And how large was your sample?
Does that mean that my code is right?
When I tried to estimate it with the following code:
y c e(-1) e(-2)
I got the simulated coefficients back.
I tried with sample sizes of 100, 1000, and 10000.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Simulated ma(2) process but don't know how to estimate i
Your code is right.
Here's an example:
The estimated MA coefficient will be about 0.5. That's because for an MA(1) coefficients of theta and 1/theta imply the same MA process.
Here's an example:
Code: Select all
series y = 2 + 2*e(-1) + e
ls y c ma(1)
Re: Simulated ma(2) process but don't know how to estimate i
Your code is right.
Here's an example:The estimated MA coefficient will be about 0.5. That's because for an MA(1) coefficients of theta and 1/theta imply the same MA process.Code: Select all
series y = 2 + 2*e(-1) + e ls y c ma(1)
Thanks a lot! Just a quick side question: how do I create a command file in eviews like a do file in stata?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Simulated ma(2) process but don't know how to estimate i
File/New/Program
Re: Simulated ma(2) process but don't know how to estimate i
Thanks. You are the best. =)File/New/Program
Who is online
Users browsing this forum: No registered users and 2 guests
