find the position of a string in a table

For questions regarding programming in the EViews programming language.

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

melamel
Posts: 30
Joined: Tue May 10, 2016 3:49 am

find the position of a string in a table

Postby melamel » Thu Jun 09, 2016 3:59 am

Hello everybody,
I am doing the ADF unit root test and I want to store the value of the coefficient associated with the @TREND, but knowing that in the ADF test the position of the said coefficient varies with every series, I wonder if there is a fuction which gives me the position of the string "@TREND" in a table ?
Thank you in advance

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

Re: find the position of a string in a table

Postby EViews Gareth » Thu Jun 09, 2016 4:43 am

There isn't one, unfortunately, so you'd have to loop through the elements of the table one at a time yourself.

Although given your specific application, I would have thought it would be easier to estimate the ADF equation yourself in an equation object rather than use the built in adf test.

melamel
Posts: 30
Joined: Tue May 10, 2016 3:49 am

Re: find the position of a string in a table

Postby melamel » Thu Jun 09, 2016 6:13 am

Thank you anyway !


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests