sampling

For questions regarding programming in the EViews programming language.

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

mark
Posts: 37
Joined: Thu Mar 12, 2009 3:27 pm

sampling

Postby mark » Fri Jul 02, 2010 10:10 am

I need to generate a number of samples in a dataset using the 6 and 7th characters from an alpha series with 60K records. Here is an example data point:

02101OP0004

I've tried tyo sample the set using various combinations of wildcards to not avail - I get "sample has no observations". Here are example sample statements.

if contractum="?????OP????"
if contractnum="*OP*"

Help please!

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

Re: sampling

Postby EViews Gareth » Fri Jul 02, 2010 10:22 am

if @mid(contractum,6,2) = "OP"

mark
Posts: 37
Joined: Thu Mar 12, 2009 3:27 pm

Re: sampling

Postby mark » Fri Jul 02, 2010 11:04 am

thanks


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests