data(salmAllOnset)
rangeTest <- 410:412
alpha <- 0.05
# Control slot for the proposed algorithm with D=0 correction
controlNormal <- list(range = rangeTest, b = 4, w = 3,
pastAberrations = TRUE, mc.munu=10, mc.y=10,
verbose = FALSE,
alpha = alpha, trend = TRUE,
limit54=c(0,50),
noPeriods = 10, pastWeeksNotIncluded = 26,
delay=FALSE,inferenceMethod="asym")
# Control slot for the proposed algorithm with D=10 correction
controlDelay <- list(range = rangeTest, b = 4, w = 3,
pastAberrations = TRUE, mc.munu=10, mc.y=10,
verbose = FALSE,
alpha = alpha, trend = TRUE,
limit54=c(0,50),
noPeriods = 10, pastWeeksNotIncluded = 26,
delay=TRUE,inferenceMethod="asym")
salm.Normal <- bodaDelay(salmAllOnset, controlNormal)
salm.delay <- bodaDelay(salmAllOnset, controlDelay)
plot(salm.Normal)
plot(salm.delay)
Run the code above in your browser using DataLab