Page 1 of 1

Sample restriction

Posted: Thu May 02, 2013 11:51 pm
by Kejh
Hi,

What i'd like to do i to restrict the sample size of one of my variables.
Lets say i have a variable with the numbers 1-50, n=50. I only want to use n<45. How do i restrict the sample to be like this?
I am new to eviews and have not quite solved the problem using google. I have tried using "smpl if x<45" but i don't know if this is correct or if i simply paste it wring in ewiews as it says smpl is not defined.
Thank you for help!

Kejh

Re: Sample restriction

Posted: Fri May 03, 2013 1:31 am
by EViews Gareth
Where are you entering that smpl statement.

Re: Sample restriction

Posted: Fri May 03, 2013 2:15 am
by Kejh
In the variable window. (select --> rmb --> open; sample)

Where it by default says "@all"

Re: Sample restriction

Posted: Fri May 03, 2013 6:33 am
by EViews Gareth
You only need to include the word "smpl" if you're issuing it from the command line.