 Im trying to compute the following statistic testing for jumps in high
frequecy asset prices,
J t,M  =  (1 – MedRVt,M / RVt,M) /(sqrt*( 0.96 * 1/M * max(1, MedRQt,M/
MedRV2t,M ))


I have in R:

## ADS Test Statistic

> numr = 1 - (outads$medrv/outads$rv)> outads$medrq/(outads$medrv^2) -> denom2> fix(denom2)



But when I  try to run the max(1, MedRQt,M/ MedRV2t,M)) part I get:



> max(1, denom2)[1] NA


I guess this is returned because I am tryin to maximise a time series /
sequence against a constant but I am not sure how to run this?

Any advice?
Thanks

	[[alternative HTML version deleted]]

