Write the equation in @uidialog

For questions regarding programming in the EViews programming language.

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

Afterall
Posts: 16
Joined: Tue May 27, 2014 7:49 am

Write the equation in @uidialog

Postby Afterall » Sun Aug 09, 2015 3:16 am

Can anyone help with equation by list. In Vuidialog window, I want to specify equation. I know for that problem I could use sipl equation in workfile. But I nead to know how to do that with edit @uidialog, because I want to changing equation in some birer eviews program.

The program is:

smpl @all

%t="1/01/2014"
%d="3/01/2014"

@uidialog("caption","Equatian window","edit",%t,"First date (MM/DD/YYYY)","edit",%d,"Last date (MM/DD/YYYY)","edit", %varyingcoefs, "The regression equation (//thats not work for now )",512)

equation eq1

smpl %t %d
eq1.ls%varyingcoefs' x1 c x1(-1) There is eror in program

smpl %t %d
eq1.forecast(f=na) tmp_yhat tmp_se
series x1f= tmp_yhat
series x1f_se = tmp_se

delete tmp_yhat
delete tmp_se
Attachments
program for equating.prg
(460 Bytes) Downloaded 298 times

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

Re: Write the equation in @uidialog

Postby EViews Gareth » Sun Aug 09, 2015 6:54 am

Code: Select all

eq1.ls {%varyingcoefs} x1 c x1(-1)

Afterall
Posts: 16
Joined: Tue May 27, 2014 7:49 am

Re: Write the equation in @uidialog

Postby Afterall » Sun Aug 09, 2015 7:51 am

Thank you, now understand syntax. The line eq1.ls {%varyingcoefs} properly solve my problem.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests