I am estimating GARCH models using the MAXIMIZE command as I need to include a dummy variable and an additional control index in my variance equation.
***************************************************************************************************************************
Code: Select all
clear(ALL)
open data "xxx"
data(for=xls,org=col)
** preliminary GARCH to get MSCI variance
garch(p=1,q=1, regressors, hseries=mscivar) / msci
# constant msci{1}
nonlin(parmset=meanparms) alpha_0 alpha_1 alpha_2
nonlin(parmset=garchparms) gamma_D gamma_0 gamma_1 gamma_2 gamma_3
*** mean equation
frml resid = spotret - alpha_0
*** regression for initial values
linreg(noprint) spotret / u
# constant spotret{1} mscivar{1}
compute alpha_0=%beta(1), alpha_1=%beta(2), alpha_2=%beta(3)
**** conditional variance equation
set h = %seesq
set u = %seesq
compute gamma_D=0.05,gamma_0=%seesq,gamma_1=0.04,gamma_2=0.05, gamma_3=0.05
frml varf =(1+gamma_D*futdum)*(gamma_0 + gamma_1*h{1} + gamma_2*u{1}**2 + gamma_3*mscivar{1})
*** log-likelihood function
frml logl = (h(t)=varf(t)),u(t)=resid(t),%logdensity(h,u)
*** maximize routine
maximize(parmset=meanparms+garchparms,method=bfgs,recursive,iters=1000) logl 3 *
**********************************************************************************************************************************
## SR10. Missing Values And/Or SMPL Options Leave No Usable Data Points
When I run this set up without the “gamma_3*mscivar{1}” – part, it works fine, so I suspect the problem to be in there…
Any ideas why that might be?
I greatly appreciate any help, suggestions or comments...
Thank you very much!
Jeanne