AR and smpl

For questions regarding programming in the EViews programming language.

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

fmccluer
Posts: 5
Joined: Thu Jul 02, 2009 2:13 pm

AR and smpl

Postby fmccluer » Thu May 23, 2013 3:19 pm

Dear Programming,

I am looking for documentation or an explanation on the interrelationship between AR and smpl. Specifically, it appears that when an AR is included the estimation will look back beyond the defined sample period to use pre-sample period values if such data is available.

For example, assume you have data from 2000m1 but smpl 2001m1 to @last
These will not give the same results.

Smpl 2001m1 @last
Eq1.ls depvar c x1 x2 ar(1)

Smpl 2000m12 2000m12
Series x1=@na

Smpl 2001m1 @last
Eq2.ls depvar c x1 x2 ar(1)

My question is: Is there an option that will prevent looking back or outside the smpl period?

Thanks.

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

Re: AR and smpl

Postby EViews Gareth » Thu May 23, 2013 4:52 pm

No, there is not.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: AR and smpl

Postby EViews Glenn » Fri May 24, 2013 9:35 am

But what you can do is to create a new variable for the dependent is the same as the dependent except for missings outside of the sample. Then there is no presample data. You can do this pretty easily using an @recode.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 0 guests