Page 1 of 2

COMPUTABLE GENERAL EQUILIBRIUM

Posted: Sun Jul 26, 2015 11:56 am
by piorember1990
Please I am learning how to perform Computable General Equilibrium using Eviews7 but I'm finding it difficult in going beyond the stage with the following codes:
CALIBER.SOLVE(s=d, d=s, o=n)
DMR.SOLVEOPT(s=d, d=s,c=1e-15, o=n)
DMR.SCENARIO(c) BASELINE
SOLVE DMR
Whenever I try running it, Eviews7 reports error message: Unable to compute due to missing data in "RHO=(1/sigma)-1" in "DO_ CALIBER.SOLVE(S=D, D=S, O=N)"

Please I need help

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Sun Jul 26, 2015 3:02 pm
by EViews Gareth
We'll need a lot more information, including, preferably, the workfile and whole program.

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Sun Jul 26, 2015 7:54 pm
by piorember1990
Please see the workfile and the whole program below. I also attached the file. Thank you sir.
WORKFILE DMR89 U 5
MATRIX(5,5) MSAM
FOR %AC ACT COM HHD ROW TOT
VECTOR(5) V{%AC}
NEXT
VACT(3)=100
VACT(5)=@SUM(VACT)
VCOM(1)=75
VCOM(4)=25
VCOM(5)=@SUM(VCOM)
VHHD(2)=100
VHHD(5)=@SUM(VHHD)
VROW(1)=25
VROW(5)=@SUM(VROW)
!COL=1
FOR %AC ACT COM HHD ROW
COLPLACE(MSAM,V{%AC},!COL)
DELETE V{%AC}
!COL=!COL+1
NEXT
!NRWS=@ROWS(MSAM)
FOR !R=1 TO (!NRWS-1)
ROWVECTOR RV{!R}=@ROWEXTRACT(MSAM, !R)
VTOT(!R)=@SUM(RV{!R})
DELETE RV{!R}
NEXT
COLPLACE(MSAM,VTOT, !NRWS)
DELETE VTOT
MODEL DMR
DMR.APPEND PX=(PE*XE + PD*XD)/XS
DMR.APPEND PD=(PQ*QQ - PM*QM)/XD
DMR.APPEND PE=EXR*PWE
DMR.APPEND XE = XD * ( (PE/PD) * (1 - alpha) / alpha )^(1 / phi)
DMR.APPEND XD=XS-XE
DMR.APPEND PM=EXR*PWM
DMR.APPEND QM = XD * ( (PD / PM)*beta / (1 - beta) )^(1 / (1 + rho))
DMR.APPEND QQ=bq*( beta*QM^(-rho) + (1-beta)*XD^(-rho) )^(-1/rho)
DMR.APPEND YH=PX*XS + EXR*BOT
DMR.APPEND EXR*BOT=(PM*QM -PE*XE )
DMR.APPEND RPD=EXR/PD
DMR.APPEND RPX=EXR/PX
FOR %VR BOT EXR PD PE PM PQ PWE PWM PX QQ QM RPD RPX XD XE XS YH omega sigma
SERIES {%VR}
NEXT
BOT=0
PD=1
PWE=1
PWM=1
XD=MSAM(1,2)
EXR=1
PE=1
PM=1
PQ=1
PX=1
RPD=EXR/PD
RPX=EXR/PX
QQ=MSAM(2,5)
QM=MSAM(4,2)
XD=MSAM(1,2)
XE=MSAM(1,4)
XS=MSAM(1,5)
YH=MSAM(3,5)
MODEL CALIBER
omega.fill 0.2, 0.5, 2, 5, 5000000
sigma.fill 0.2, 0.5, 2, 5, 5
CALIBER.APPEND rho=(1/sigma) - 1
CALIBER.APPEND phi=(1/omega) +1
CALIBER.APPEND alpha=1/(1 + (PD/PE)*(XE/XD)^(phi ))
CALIBER.APPEND ax = XS/(alpha*XE^phi + (1-alpha)*XD^phi )^(1/phi)
CALIBER.APPEND beta=((PM/PD)*(QM/XD)^(1+rho) )/(1 + (PM/PD)*(QM/XD)^(rho+1))
CALIBER.APPEND bq = QQ/(beta*QM^(-rho) + (1-beta)*XD^(-rho) )^(-1/rho)

CALIBER.SCENARIO ACTUALS
CALIBER.SOLVE(s=d, d=s, o=n)
DMR.SOLVEOPT(s=d, d=s,c=1e-15, o=n)
DMR.SCENARIO(c) BASELINE
SOLVE DMR
DMR.MAKEGROUP(a) BASEGRP @ENDOG
FREEZE(BASELINE) BASEGRP

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Mon Jul 27, 2015 8:55 am
by EViews Gareth
That seems to run just fine in my EViews 7 (and 8, and 9).

Is your copy of EViews 7 fully up to date?

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Mon Jul 27, 2015 12:46 pm
by piorember1990
My eviews is eviews 8 student version. Can't it run the program??

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Mon Jul 27, 2015 12:57 pm
by EViews Gareth
No, EViews student version cannot run programs.

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Mon Jul 27, 2015 2:11 pm
by piorember1990
Thanks for your replies. How can I get the main eviews7 or 8? Hw much will it cost me? I really need it.

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Mon Jul 27, 2015 2:19 pm
by EViews Gareth

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Mon Jul 27, 2015 2:25 pm
by piorember1990
Thanks. What about the 7th edition? eviews7?? This version seems expensive.

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Mon Jul 27, 2015 2:30 pm
by EViews Gareth
You can no longer purchase EViews 7 or 8.

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Tue Mar 29, 2016 3:11 pm
by piorember1990
Good day sir, I am having a challenge of evaluating forecast. I did a forecast using eviews 9 but can't evaluate the forecasts. Each attempt gives me all zeros for RMSE, MAPE, Theil and all other statistics.
Please I need some help.

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Tue Mar 29, 2016 3:20 pm
by EViews Gareth
Can you provide your data and instructions on exactly what you did?

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Wed Mar 30, 2016 10:01 am
by piorember1990
Thanks for your prompt response Gareth.
I intend to make a monthly forecast of CPI from January 2016 to December 2016 and evaluate the forecasts. I have data from January 1995 up to December 2010 (Training set or estimation sample).
I was able to implement the forecast but unable to evaluate the forecast performance. I would open the forecast series and click on view then select forecast evaluation but RSME, MAPE, MAE and Theil statistics all appear with zero values.
Thank you.

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Wed Mar 30, 2016 10:11 am
by EViews Gareth
Not sure I understand - you need to have one series of actual values and then one or more series of forecasts

Re: COMPUTABLE GENERAL EQUILIBRIUM

Posted: Wed Mar 30, 2016 12:22 pm
by piorember1990
Thanks Gareth, but sorry I could not attached the series as they appeared in my eviews workfile. However, I have copied the estimation or training sample series and the forecasted series cpi and cpi_f in this workfile respectively.
My major problem is that, I can not evaluate the forecasts.
Thanks.