COMPUTABLE GENERAL EQUILIBRIUM

For technical support, tips and tricks, suggestions, or any other information regarding the EViews model object.

Moderators: EViews Gareth, EViews Moderator

piorember1990
Posts: 10
Joined: Sun Jul 26, 2015 11:35 am

COMPUTABLE GENERAL EQUILIBRIUM

Postby piorember1990 » Sun Jul 26, 2015 11:56 am

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

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

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby EViews Gareth » Sun Jul 26, 2015 3:02 pm

We'll need a lot more information, including, preferably, the workfile and whole program.
Follow us on Twitter @IHSEViews

piorember1990
Posts: 10
Joined: Sun Jul 26, 2015 11:35 am

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby piorember1990 » Sun Jul 26, 2015 7:54 pm

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
Attachments
CGE CODES 1.doc
CGE CODES.
(28.5 KiB) Downloaded 523 times

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

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby EViews Gareth » Mon Jul 27, 2015 8:55 am

That seems to run just fine in my EViews 7 (and 8, and 9).

Is your copy of EViews 7 fully up to date?
Follow us on Twitter @IHSEViews

piorember1990
Posts: 10
Joined: Sun Jul 26, 2015 11:35 am

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby piorember1990 » Mon Jul 27, 2015 12:46 pm

My eviews is eviews 8 student version. Can't it run the program??

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

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby EViews Gareth » Mon Jul 27, 2015 12:57 pm

No, EViews student version cannot run programs.
Follow us on Twitter @IHSEViews

piorember1990
Posts: 10
Joined: Sun Jul 26, 2015 11:35 am

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby piorember1990 » Mon Jul 27, 2015 2:11 pm

Thanks for your replies. How can I get the main eviews7 or 8? Hw much will it cost me? I really need it.

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

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby EViews Gareth » Mon Jul 27, 2015 2:19 pm

Follow us on Twitter @IHSEViews

piorember1990
Posts: 10
Joined: Sun Jul 26, 2015 11:35 am

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby piorember1990 » Mon Jul 27, 2015 2:25 pm

Thanks. What about the 7th edition? eviews7?? This version seems expensive.

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

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby EViews Gareth » Mon Jul 27, 2015 2:30 pm

You can no longer purchase EViews 7 or 8.
Follow us on Twitter @IHSEViews

piorember1990
Posts: 10
Joined: Sun Jul 26, 2015 11:35 am

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby piorember1990 » Tue Mar 29, 2016 3:11 pm

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.

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

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby EViews Gareth » Tue Mar 29, 2016 3:20 pm

Can you provide your data and instructions on exactly what you did?
Follow us on Twitter @IHSEViews

piorember1990
Posts: 10
Joined: Sun Jul 26, 2015 11:35 am

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby piorember1990 » Wed Mar 30, 2016 10:01 am

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.
Attachments
MY WORKFILE.xls
(24 KiB) Downloaded 383 times

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

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby EViews Gareth » Wed Mar 30, 2016 10:11 am

Not sure I understand - you need to have one series of actual values and then one or more series of forecasts
Follow us on Twitter @IHSEViews

piorember1990
Posts: 10
Joined: Sun Jul 26, 2015 11:35 am

Re: COMPUTABLE GENERAL EQUILIBRIUM

Postby piorember1990 » Wed Mar 30, 2016 12:22 pm

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.
Attachments
MY WORKFILE.xls
(37 KiB) Downloaded 358 times


Return to “Models”

Who is online

Users browsing this forum: No registered users and 7 guests