search for: logret

Displaying 1 result from an estimated 1 matches for "logret".

Did you mean: logreg
2013 Apr 08
0
Maximum likelihood estimation of ARMA(1,1)-GARCH(1,1)
...the GARCH(1,1) volatility model to a variety of alternative specifications to capture the potential asymmetry for a better comparison: # GARCH(1,1), EGARCH(1,1), NGARCH(1,1), and TGARCH(1,1). options(scipen=10) intel= read.csv(file="intel.csv") summary(intel) raw_data= as.matrix(intel$logret) library(fGarch) garchFit(~arma(1,1)+garch(1,1), data=raw_data, trace=FALSE) negative_log_likelihood_arma11_garch11= function(theta, data) {mean =theta[1] delta=theta[2] gamma=theta[3] omega=theta[4] alpha=theta[5] beta= theta[6] r= ts(data) n= length(r) u= vector(length=n) u= ts(u)...