Search found 5 matches

by albeta456
Sun Dec 28, 2014 3:24 pm
Forum: Examples and Sample Code
Topic: Kilian and Vigfusson (2011)
Replies: 76
Views: 206323

Re: Kilian and Vigfusson (2011)

Do you mean just adding a negative sign into this codoe: compute delta=-scales(i)*sigmax ? Nothing else?
No need to change: frml xplusdef xplus = %max(0.0,x)? Then the shocks are still positive shocks, not the negative shocks that I want.

Thank you very much for your help.
by albeta456
Sat Dec 27, 2014 5:29 pm
Forum: Examples and Sample Code
Topic: Kilian and Vigfusson (2011)
Replies: 76
Views: 206323

Re: Kilian and Vigfusson (2011)

How can I change the program codes to obtain the response of GDP to a NEGATIVE energy price shock (instead of positive shock)? I tried to change the code "set xplus = %max(0.0, x)" to "set xplus = %min(0.0, x)". But the results are wrong.

Thanks.
by albeta456
Sat Oct 11, 2014 10:27 pm
Forum: ARCH and GARCH Models
Topic: component GARCH
Replies: 1
Views: 4378

component GARCH

Tom, Can you post the program codes of component GARCH of Engle, R. F., and G. G. J. Lee (1999): “A Long-Run and Short-Run Component Model of Stock Return Volatility,” in Cointegration, Causality, and Forecasting, ed. by Engle, and White. Oxford University Press. I tried the following: frml hf = h1+...
by albeta456
Tue Sep 30, 2014 8:18 pm
Forum: ARCH and GARCH Models
Topic: Adding a Mean Model of my choice in the GARCH process
Replies: 5
Views: 7436

Re: Adding a Mean Model of my choice in the GARCH process

Thanks, Tom.

How can I save the h series in a file?
by albeta456
Mon Sep 29, 2014 12:35 am
Forum: ARCH and GARCH Models
Topic: Adding a Mean Model of my choice in the GARCH process
Replies: 5
Views: 7436

GARCH mean

Tom, Can you post the codes for univariate GARCH-mean using "maximize"? I know that I can use garch(p=1,q=1,reg,hseries=h) / r # constant r{1} %garchv{1} But I need the detailed codes with logl that I can modify. I tried the following, but it doesn't work: nonlin(parmset=meanparms) c0 c1 t...