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.
Equation sample after adjustments
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Equation sample after adjustments
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
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.
etc.
Code: Select all
equation eq1.ls y c x
eq1.makeresid eq1residWho is online
Users browsing this forum: No registered users and 2 guests
