Equation sample after adjustments

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

Equation sample after adjustments

Postby fmccluer » Wed May 14, 2014 5:03 am

The equation object returns the sample that was set at the time the equation was run, i.e., eq.@smpl. However, due to missing observations, for example, the sample may be adjusted and is reported in the output. Is it possible to programmatically extract the adjusted sample?
Thanks.

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

Re: Equation sample after adjustments

Postby startz » Wed May 14, 2014 7:08 am

ls y c x

Code: Select all

series kludgeDummy = not @isna(resid) sample kludgeSample if klugeDummy

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

Re: Equation sample after adjustments

Postby EViews Glenn » Wed May 14, 2014 8:59 am

The general idea is correct, though I would modify the recommendation slightly to use explicit equation names and the makeresid proc. The resid series is often modified and I wouldn't want someone to think that they can always extract the sample from what's currently in resid.

Code: Select all

equation eq1.ls y c x eq1.makeresid eq1resid
etc.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests