# NOT RUN {
# We can easily make a Lee-Mykland jump test.
LMtest <- intradayJumpTest(pData = sampleTDataMicroseconds[, list(DT, PRICE)],
volEstimator = "RM", driftEstimator = "none",
RM = "bipower", lookBackPeriod = 20,
on = "minutes", k = 5, marketOpen = "09:30:00",
marketClose = "16:00:00")
plot(LMtest)
# We can just as easily use the pre-averaged version from the "Fact or Friction" paper
FoFtest <- intradayJumpTest(pData = sampleTDataMicroseconds[, list(DT, PRICE)],
volEstimator = "PARM", driftEstimator = "none",
RM = "bipower", lookBackPeriod = 20, theta = 1.2,
marketOpen = "09:30:00", marketClose = "16:00:00")
plot(FoFtest)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab