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

For questions regarding programming in the EViews programming language.

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

acemi
Posts: 46
Joined: Thu Jun 23, 2016 10:28 pm

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

Postby acemi » Wed May 03, 2017 12:50 am

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
Attachments
fi_simul.prg
(1.39 KiB) Downloaded 293 times
simulasyon_eviews deneme data_fi.wf1
(7.67 MiB) Downloaded 246 times

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

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

Postby EViews Gareth » Wed May 03, 2017 2:39 am

C(2)=0.1

acemi
Posts: 46
Joined: Thu Jun 23, 2016 10:28 pm

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

Postby acemi » Wed May 03, 2017 3:09 am

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.
Attachments
simulasyon_eviews deneme data_fi.wf1
(38.41 KiB) Downloaded 255 times
fi_simul.prg
(1.35 KiB) Downloaded 316 times

acemi
Posts: 46
Joined: Thu Jun 23, 2016 10:28 pm

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

Postby acemi » Wed May 03, 2017 7:14 am

Hello again, fixed this issue via a if then else loop inspired from command and object user reference.
Thank you.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests