Page 1 of 1

Alpha object, string manipulation

Posted: Fri Apr 01, 2011 1:54 pm
by gwingard
Hello all,

I'm using Eviews 7 for modeling purposes and I've come across a problem I need some help with. I have an alpha object populated with a few million records of the form ( variable_geography_scenario ). What i'm trying to do is delimit each record into 3 separate strings. I've tried the @wdelimit command but get an error stating wdelim is not a genr or series expression function.

Code: Select all

for !x = 1 to 11619612 alpha msa_series = @wdelim(mnemonic(!x), "_", " ") next

I'd like to delimit the existing alpha object, named "mnemonic", creating a new alpha series "msa_series" with the delimited string. Then I'd like to use the @word function to populate 3 new alpha series.
I'm clearly missing something fundamental to the behavior of alpha objects.
All of this just to unstack some data :)

I appreciate any help.

Thank you.

Re: Alpha object, string manipulation

Posted: Fri Apr 01, 2011 1:59 pm
by EViews Gareth
Can't you just use @replace to replace the "_" with " "?. Thus something like:

Code: Select all

alpha msa_series = @replace(mnemonic, "_", " ")