Change smpl for panel file

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Kavorka
Posts: 47
Joined: Mon Nov 30, 2009 6:06 am

Change smpl for panel file

Postby Kavorka » Sat Oct 27, 2012 5:21 am

To change the sample in a non-dated file you can e.g. write:

smpl 5 25

However, if I have a panel file and I want to change sample I do not know how to do this, and I did not find anything in the helpfiles. I want the SYNTAX to do this, not by using the menus.

Kavorka
Posts: 47
Joined: Mon Nov 30, 2009 6:06 am

Re: Change smpl for panel file

Postby Kavorka » Sat Oct 27, 2012 9:59 am

I solved my own question (but I post it anyway, if there is someone else who is wondering).

Use
smpl if

If I have 10 different countries which are saved in the variable COUNTRY (with the names 1, 2,..., 10...). Just type in the name of this country in the following syntax, e.g. country 4:

scalar fc = 4
smpl if COUNTRY={fc}


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests