how to use Eviews generating a series defined by the D.G.P.,

For questions regarding programming in the EViews programming language.

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

yuwenche
Posts: 4
Joined: Mon Jun 21, 2010 8:30 am

how to use Eviews generating a series defined by the D.G.P.,

Postby yuwenche » Tue Jun 22, 2010 8:40 am

Hello,
Can anyone tell me how to use Eviews generating a series defined by the D.G.P.,yt=yt-4 + εt , where εt is IID(0,1). I tried the following code, but it seems not to work because it generates a lot of NA.

smpl 1 1
genr y=0
smpl 2 80
series y = y(-4) + nrnd

Thanks,

Alan Yu

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: how to use Eviews generating a series defined by the D.G.P.,

Postby EViews Gareth » Tue Jun 22, 2010 8:47 am

You've got the right idea, but rather than starting at the 2nd observation, you need to start at the 5th, since you have a 4 period lag in the process rather than a 1.

yuwenche
Posts: 4
Joined: Mon Jun 21, 2010 8:30 am

Re: how to use Eviews generating a series defined by the D.G.P.,

Postby yuwenche » Wed Jun 23, 2010 7:52 am

You've got the right idea, but rather than starting at the 2nd observation, you need to start at the 5th, since you have a 4 period lag in the process rather than a 1.
Yes,it work. Thanks a lot!

Alan Yu


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests