Hi,
How to select every second observation value (starting from the second observation) from the sample to be included in the equation estimation?
I know that @first+1 excludes first value but I don't know how then to include every second value till the last one.
Thanks.
Smpl command
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Smpl command
Look carefully at the variables in your data set. Hint: what makes the second observation in each pair different from the first?
Re: Smpl command
Are you reffering to the even value of observation id? If yes, it occurred to me but don't know how to code it.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Smpl command
I think if you look at all the variables, you will find that one contains the year of the observation or is a dummy for the year. You can then use smpl if to only include those observations that you want.
Re: Smpl command
Yeah, it worked. I entered "smpl 1 92 if year = 87"; the sample size (46) and coefficients now correspond.
Thanks. :D
Thanks. :D
Who is online
Users browsing this forum: No registered users and 2 guests
