Sample restriction

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Kejh
Posts: 2
Joined: Thu May 02, 2013 11:44 pm

Sample restriction

Postby Kejh » Thu May 02, 2013 11:51 pm

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

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

Re: Sample restriction

Postby EViews Gareth » Fri May 03, 2013 1:31 am

Where are you entering that smpl statement.

Kejh
Posts: 2
Joined: Thu May 02, 2013 11:44 pm

Re: Sample restriction

Postby Kejh » Fri May 03, 2013 2:15 am

In the variable window. (select --> rmb --> open; sample)

Where it by default says "@all"

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

Re: Sample restriction

Postby EViews Gareth » Fri May 03, 2013 6:33 am

You only need to include the word "smpl" if you're issuing it from the command line.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests