Page 1 of 1

find the position of a string in a table

Posted: Thu Jun 09, 2016 3:59 am
by melamel
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

Re: find the position of a string in a table

Posted: Thu Jun 09, 2016 4:43 am
by EViews Gareth
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.

Re: find the position of a string in a table

Posted: Thu Jun 09, 2016 6:13 am
by melamel
Thank you anyway !