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	
