Garch with dummy in mean equation
이전 댓글 표시
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
Walter Roberson
2011년 8월 11일
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
2011년 8월 11일
I deleted my previous erroneous comment.
채택된 답변
추가 답변 (2개)
Oleg Komarov
2011년 8월 11일
% 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
2011년 8월 11일
0 개 추천
댓글 수: 8
Oleg Komarov
2011년 8월 11일
Are you doing garch at all?
Anyways, as you say you don't have to do MA, just change specification.
gaia buratti
2011년 8월 11일
Oleg Komarov
2011년 8월 11일
* 4 dummies for the quarters? Which book are you using?
gaia buratti
2011년 8월 11일
Oleg Komarov
2011년 8월 11일
Ok,sorry gaia, I take back the dummy variable trap thing. I misread your first equation.
Yes, about the 4 dummies + constant = trap.
gaia buratti
2011년 8월 11일
Oleg Komarov
2011년 8월 11일
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
2011년 8월 12일
카테고리
도움말 센터 및 File Exchange에서 Conditional Variance Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!