powered by
Obtains the log-likelihood of the base MEM, with an asymmetric term linked to past negative returns. For details, see engle_gallo_2006;textualrumidas.
MEM_loglik(param, x, daily_ret)
The resulting vector is the log-likelihood value for each \(i,t\).
Vector of starting values.
Dependent variable, usually the realized volatility. It must be positive and "xts" object.
Daily returns, which must be an "xts" object, and with the same length of x.
# \donttest{ start_val<-c(alpha=0.10,beta=0.8,gamma=0.05) real<-(rv5['/2010'])^0.5 # realized volatility r_t<-sp500['/2010'] sum(MEM_loglik(start_val,real,r_t)) # }
Run the code above in your browser using DataLab