Page 1 of 1

How to assign starting values to coefficient vector via Eviews Program command

Posted: Wed May 03, 2017 12:50 am
by acemi
Hello,

I developed simple code to simulate values of Non Linear Least Squares NLS estimation coefficients.
Basically different range of starting values are defined for 5 coefficients, and both these values and the converged NLS coefficients estimates are recorded in matrix "results" row for each simulation value set.

My problem is to assign starting values into coefficient vector before each NLS estimation. The code I wrote for this starts with the text
"assign starting values to coefficient vector." but Eviews displays following error :

SHEET.(2,1)=0.1 is not a valid view for C in "DO_ C.SHEET.(2,1)=0.1".

Would very much appreciate any clues on this.
Many thanks in advance
acemi

Re: How to assign starting values to coefficient vector via Eviews Program command

Posted: Wed May 03, 2017 2:39 am
by EViews Gareth
C(2)=0.1

Re: How to assign starting values to coefficient vector via Eviews Program command

Posted: Wed May 03, 2017 3:09 am
by acemi
Thank you and silly me.

Now that I fixed this issue I run the program by setting "max number of errors before halting" = 20 from run prg dialog box.
But eviews stops way before at 2 iterations. How can I instruct it to run until it reaches prespecified error number ?
Thank you in advance again.
acemi
PS. updated prg file is attached.

Re: How to assign starting values to coefficient vector via Eviews Program command

Posted: Wed May 03, 2017 7:14 am
by acemi
Hello again, fixed this issue via a if then else loop inspired from command and object user reference.
Thank you.