how to simulate AR(2)

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

shikelang
Posts: 2
Joined: Sun Mar 22, 2009 7:01 am

how to simulate AR(2)

Postby shikelang » Sun Mar 22, 2009 7:50 am

Dear Eviews Lovers, can you help me how to program to simulate AR(2)? For example
y=0.2y(-1)+0.1y(-2)+nrnd

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: how to simulate AR(2)

Postby startz » Sun Mar 22, 2009 8:30 am

Dear Eviews Lovers, can you help me how to program to simulate AR(2)? For example
y=0.2y(-1)+0.1y(-2)+nrnd

Code: Select all

series y = nrnd smpl 3 @last y = .2*y(-1) + .1*y(-2) + nrnd

shikelang
Posts: 2
Joined: Sun Mar 22, 2009 7:01 am

Re: how to simulate AR(2)

Postby shikelang » Sun Mar 22, 2009 4:11 pm

Thanks very much startz, I can get AR(2) simulation.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests