Garch with dummy in mean equation

8 visualizzazioni (ultimi 30 giorni)
gaia buratti
gaia buratti il 11 Ago 2011
Hi, I would like to estimate this regression y=aD1 +aD2 + BD1Ret + BD2Ret +e. D1 is a dummy that is 1 whrn the return is positive, whereas D2 is 1 when it is negative and zero when is positive. I want to use a garch model. Is it correct to put in the garch specification 'C' NaN and to put in the matrix with the dependent variable D1 and D2, i this way it should ignore C and the intercept would become the coefficients of D1 and D2.
I know that i could set the equation as y=a +aD2 + BRet + BD2Ret +e. but I prefer have the two different coefficient and tyhen compute the difference. Thanks in advance Gaia
  2 Commenti
Walter Roberson
Walter Roberson il 11 Ago 2011
Is that the U-shaped piece of logic that you have to get the plumber to come over and clear out if you don't run the garbage collector often enough?
Oleg Komarov
Oleg Komarov il 11 Ago 2011
I deleted my previous erroneous comment.

Accedi per commentare.

Risposta accettata

the cyclist
the cyclist il 11 Ago 2011
I don't know the specific answer to your question, but I use a general approach that might be useful to you: Generate data that you know should be perfectly fitted by the model you propose, then see if the technique you want to use gives the correct result.

Più risposte (2)

Oleg Komarov
Oleg Komarov il 11 Ago 2011
% Fake returns
R = randn(1000,1);
% Intercept dummy
D1 = R > 0;
% Coefficient dummy
D2 = zeros(size(R));
D2(D1) = R(D1);
% GARCH(1,1) with MA(1) for mean + dummies
Spec = garchset('M',1,'P',1,'Q',1,'Display','off');
garchfit(Spec,R,[D1 D2]);

gaia buratti
gaia buratti il 11 Ago 2011
Thanks to both. Oleg, I think that your model is good for the moving average, but I don't have to do a MA, I have to regress against other variables, like y=a+Bx+e but with dummies. By the way I empirically tried as the cyclist suggested and it seems working. It is a good method, I didn't think about it, I'm sorry but it is my first "empirical work ".
Gaia
  8 Commenti
Oleg Komarov
Oleg Komarov il 11 Ago 2011
Shouldn't give you problems but don't take my words for granted. I am no expert in ARCH modelling, just know how to implement it with MATLAB.
gaia buratti
gaia buratti il 12 Ago 2011
Thanks, it was jusr a confirmation, I spent a day looking for an answer but I didn't find anything... I reasoned about that and i don't think it creates...I hope

Accedi per commentare.

Categorie

Scopri di più su Conditional Variance Models in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by