Panel GARCH? (Cermeno and Grier, 2006)
-
ksvirydzenka
- Posts: 1
- Joined: Sat Jun 05, 2010 6:50 am
Panel GARCH? (Cermeno and Grier, 2006)
Hello,
Does anyone now how to estimate a Panel GARCH ala Cermeno and Grier (2006) in RATS? It is similar to a DVECH model, except you impose common dynamics in variance and covariance equations:
σ{i,t}² =α{i}+δσ{i,t-1}²+γu{i,t-1}² for i=1,...N
σ{ij,t}² =η{ij}+λσ{ij,t-1}+ρu{i,t-1}u{j,t-1} for i≠j
This is useful for large panels of stock returns (N equal to 40, for example) where you want to study common effect of an exogenous variable on variances and which are impossible to estimate without such restrictions due to the number of parameters.
Any help or suggestions much appreciated!
Thanks,
Katya
Full reference: Cermeno, R., Grier, K. 2006. "Conditional heteroskedasticity and cross-sectional dependence in panel data: an empirical study of inflation uncertainty in the G-7 countries." In: B. Baltagi, Editor, Panel Data Econometrics: Theoretical Contributions and Empirical Applications, Springer Publishing, New York (2006), pp. 259--278.
Does anyone now how to estimate a Panel GARCH ala Cermeno and Grier (2006) in RATS? It is similar to a DVECH model, except you impose common dynamics in variance and covariance equations:
σ{i,t}² =α{i}+δσ{i,t-1}²+γu{i,t-1}² for i=1,...N
σ{ij,t}² =η{ij}+λσ{ij,t-1}+ρu{i,t-1}u{j,t-1} for i≠j
This is useful for large panels of stock returns (N equal to 40, for example) where you want to study common effect of an exogenous variable on variances and which are impossible to estimate without such restrictions due to the number of parameters.
Any help or suggestions much appreciated!
Thanks,
Katya
Full reference: Cermeno, R., Grier, K. 2006. "Conditional heteroskedasticity and cross-sectional dependence in panel data: an empirical study of inflation uncertainty in the G-7 countries." In: B. Baltagi, Editor, Panel Data Econometrics: Theoretical Contributions and Empirical Applications, Springer Publishing, New York (2006), pp. 259--278.
Re: Panel GARCH? (Cermeno and Grier, 2006)
This is based upon the standard GARCHMV.PRG example. It does just three series, but will generalize to much larger numbers. This uses the standard DVEC code, but adds a START function for MAXIMIZE which creates the "A" and "B" matrices using the four free parameters.
Code: Select all
all 6237
open data g10xrate.xls
data(format=xls,org=columns) / usxjpn usxfra usxsui
*
set xjpn = 100.0*log(usxjpn/usxjpn{1})
set xfra = 100.0*log(usxfra/usxfra{1})
set xsui = 100.0*log(usxsui/usxsui{1})
*
* Estimation using MAXIMIZE
* The initial few lines of this set the estimation range, which needs to
* be done explicitly, and the number of variables. Then, vectors for the
* dependent variables, residuals and residuals formulas are set up. The
* SET instructions copy the dependent variables over into the slots in
* the vector of series.
*
compute gstart=2,gend=6237
compute n=3
dec vect[series] y(n) u(n)
dec vect[frml] resid(n)
set y(1) = xjpn
set y(2) = xfra
set y(3) = xsui
*
* This is specific to a mean-only model. It sets up the formulas (the &i
* are needed in the formula definitions when the FRML is defined in a
* loop), and estimates them using NLSYSTEM. This both initializes the
* mean parameters, and computes the unconditional covariance matrix. If
* you want more general mean equations, the simplest way to do that
* would be to define each FRML separately.
*
dec vect b(n)
nonlin(parmset=meanparms) b
do i=1,n
frml resid(i) = (y(&i)-b(&i))
end do i
nlsystem(parmset=meanparms,resids=u) gstart gend resid
compute rr=%sigma
*
* The paths of the covariance matrices and uu' are saved in the
* SERIES[SYMM] names H and UU. UX and HX are used to pull in residuals
* and H matrices.
*
declare series[symm] h uu
*
* ux is used when extracting a u vector
*
declare symm hx(n,n)
declare vect ux(n)
*
* These are used to initialize pre-sample variances.
*
gset h * gend = rr
gset uu * gend = rr
*
* This is a standard (normal) log likelihood formula for any
* multivariate GARCH model. The difference among these will be in the
* definitions of HF and RESID. The function %XT pulls information out of
* a matrix of SERIES.
*
declare frml[symm] hf
*
frml logl = $
hx = hf(t) , $
%do(i,1,n,u(i)=resid(i)) , $
ux = %xt(u,t), $
h(t)=hx, uu(t)=%outerxx(ux), $
%logdensity(hx,ux)
*****************************************************
*
* Panel GARCH - DVECH with restrictions
*
dec symm vcs(n,n)
dec real delta lambda gamma rho
dec symm vbs(n,n) vas(n,n)
*
compute vcs=rr*.1,delta=lambda=.8,gamma=rho=.1
nonlin(parmset=garchparms) vcs delta lambda gamma rho
frml hf = vcs+vbs.*h{1}+vas.*uu{1}
*
* Call once during START option to fill in the VAS and VBS arrays
*
function PGARCHInit
local integer i j
ewise vbs(i,j)=%if(i==j,delta,lambda)
ewise vas(i,j)=%if(i==j,gamma,rho)
end
*
maximize(start=PGARCHInit(),parmset=meanparms+garchparms,pmethod=simplex,piters=10,method=bfgs,iters=400) logl gstart gendRe: Panel GARCH? (Cermeno and Grier, 2006)
I`m interested in a GARCH-in-mean effect being incorporated into this code. Would this be straightforward?
MJH.
MJH.
Re: Panel GARCH? (Cermeno and Grier, 2006)
Yes. The declaration of "H" would need to be put higher, since you would need it for using H in the definition of resid. The adjustment of adding an M effect is no different than it would be for a standard multivariate GARCH model.lboecmjh2 wrote:I`m interested in a GARCH-in-mean effect being incorporated into this code. Would this be straightforward?
MJH.
Re: Panel GARCH? (Cermeno and Grier, 2006)
Hi Tom,
I am not able to figure out why the excel file (g10xrate.xls) is not stacked as a Panel file. Thus, can you please provide me more explanation about how it works as Panel-GARCH specifications and if I do stack the data set as pooled panel what is the modifications in your code?
Thanks in advance
Fathi
I am not able to figure out why the excel file (g10xrate.xls) is not stacked as a Panel file. Thus, can you please provide me more explanation about how it works as Panel-GARCH specifications and if I do stack the data set as pooled panel what is the modifications in your code?
Thanks in advance
Fathi
Re: Panel GARCH? (Cermeno and Grier, 2006)
Unstack them. The Panel-GARCH is a "panel" estimator in name only; it's a special case of a multivariate GARCH model, which is generally applied to a similarly constructed set of data (N separate long time series).Fathi71 wrote:Hi Tom,
I am not able to figure out why the excel file (g10xrate.xls) is not stacked as a Panel file. Thus, can you please provide me more explanation about how it works as Panel-GARCH specifications and if I do stack the data set as pooled panel what is the modifications in your code?
Thanks in advance
Fathi
Re: Panel GARCH? (Cermeno and Grier, 2006)
Thanks Tom for your help! I have one more question: what do DELTA, LAMBDA,GAMMA, and RHO mean? and could you please provide me with equations model that used to build this code? I am unable to interpret the code results
Fathi
Fathi
Re: Panel GARCH? (Cermeno and Grier, 2006)
See the formulas in the original post.Fathi71 wrote:Thanks Tom for your help! I have one more question: what do DELTA, LAMBDA,GAMMA, and RHO mean? and could you please provide me with equations model that used to build this code? I am unable to interpret the code results
Fathi
Re: Panel GARCH? (Cermeno and Grier, 2006)
Dear Tom,
Thanks alot for the help!
One more question please
, if I would like to unrestricted the conditional variance equation by allowing parameters delta, gamma, lambda and rho to be more than one of each, let say 3 or 4 for 5 series, what the modification is needed to achieve that ?
Sincerely,
Fathi
Thanks alot for the help!
One more question please
Sincerely,
Fathi
Re: Panel GARCH? (Cermeno and Grier, 2006)
Is there really much point to that? That's basically a DVECH model with a very small number of constraints.
Re: Panel GARCH? (Cermeno and Grier, 2006)
Yes! because I am interested in comparing only to types of volatilities among the eight ones! So constraining them into one parameter of each prevents me from an important analysis
Re: Panel GARCH? (Cermeno and Grier, 2006)
Could you be more specific about your model? (You can attach a formula in a GIF).Fathi71 wrote:Yes! because I am interested in comparing only to types of volatilities among the eight ones! So constraining them into one parameter of each prevents me from an important analysis
Re: Panel GARCH? (Cermeno and Grier, 2006)
Dear Tom,
Attached is my model and specifications, where N= 5 series.
if you have question let me know, with my appreciation
Attached is my model and specifications, where N= 5 series.
if you have question let me know, with my appreciation
Re: Panel GARCH? (Cermeno and Grier, 2006)
I may be misunderstanding what you were asking. What you posted uses a standard Panel GARCH model for the variance, but uses a more complicated mean model with lagged variables and M effects. Is that what you want, or are you looking for a different type of variance model?
Re: Panel GARCH? (Cermeno and Grier, 2006)
As mentioned above, I am looking for unrestricted coefficient of variance equations. can you find way to make variance equations coefficients vary?
Don't worry about mean equation!
Don't worry about mean equation!