What is wrong with my instructions ( please see below )?
The output i get is different from the output generated from the GRACH instruction.
I am trying to use the MAX instruction for a GARCH(1,1) process.
Many thanks,
sulong
Code: Select all
OPEN DATA "/Applications/RATS 8.0/Examples/garch.asc"
DATA(FORMAT=PRN,NOLABELS,ORG=COLUMNS) 1 1867 BP CD DM JY SF
table
set dlogdm = 100*log(dm/dm{1})
set temp = 0.0
nonlin a0 b0 b1 b2
frml ep = dlogdm - a0
frml h = b0 + b1*(ep{1}**2) + b2*temp{1}
frml L = (temp=h), -0.5*log(h) - ep**2/h
com a0=1, b0=1, b1=1, b2=1
max L 4 *
GARCH(P=1,Q=1) / DLOGDM