Page 1 of 1

Sample Panel Data

Posted: Thu Mar 17, 2016 1:16 am
by stefanp
Hey,

I would like to sample in a panel workfile for all but few cross sections. All the cross sections that should be excluded have a similar pattern, i.e. they start with "aa_" and then "2", "3". I would like to exclude all cross sections that start with "aa_"

I thought of something like this:

Code: Select all

smpl @all if ident<>"aa_"*
However, I end up with a syntax error. I could not find a way to make use of the "*" symbol.

Any ideas?

Re: Sample Panel Data

Posted: Thu Mar 17, 2016 7:39 am
by EViews Gareth
How about:

Code: Select all

smpl if @left(ident,3)<>"aa_"