Page 1 of 1

Change smpl for panel file

Posted: Sat Oct 27, 2012 5:21 am
by Kavorka
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.

Re: Change smpl for panel file

Posted: Sat Oct 27, 2012 9:59 am
by Kavorka
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}