search for: abdjumptest

Displaying 2 results from an estimated 2 matches for "abdjumptest".

2012 Jul 19
1
Change log(J) to log(J+1) to stop log(0) from occurring in harModel
...model$type = "HARRVJ"; model$dates = alldates[(maxp+h):n]; class(model) = c("harModel","lm"); return( model ) }#End HAR-RV-J if cond if( type == "HARRVCJ" ){ # Are the jumps significant? if not set to zero: if( jumptest=="ABDJumptest" ){ TQ = apply.daily(data, TQfun); J = J[,1]; teststats = ABDJumptest(RV=RM1,BPV=RM2,TQ=TQ ); }else{ jtest = match.fun(jumptest); teststats = jtest(data,...) } Jindicators = teststats > qnorm(1-alpha); J[!Jindicators] = 0; # Get continuus compo...
2012 Jul 19
1
Switching log(J) to log(J+1) to avoid log(0) in HAR-RVJ model
...pe = "HARRVJ"; model$dates = alldates[(maxp+h):n]; class(model) = c("harModel","lm"); return( model ) }#End HAR-RV-J if cond and this if( type == "HARRVCJ" ){ # Are the jumps significant? if not set to zero: if( jumptest=="ABDJumptest" ){ TQ = apply.daily(data, TQfun); J = J[,1]; teststats = ABDJumptest(RV=RM1,BPV=RM2,TQ=TQ ); }else{ jtest = match.fun(jumptest); teststats = jtest(data,...) } Jindicators = teststats > qnorm(1-alpha); *J[!Jindicators] = 0;* to if( type == "H...