# NOT RUN {
# Example 1
N <- 100
v <- seq(from = 0, to = 1, length.out = 5)
sig <- 2
Y <- simulate_iid_brownian_bridge(N, v, sig)
obtain_FACF(Y,v,20)
# }
# NOT RUN {
# Example 2
data(elec_prices)
v <- seq(from = 1, to = 24)
nlags <- 50
obtain_FACF(Y = as.matrix(elec_prices),
v = v,
nlags = nlags,
ci = 0.95,
figure = TRUE)
# }
Run the code above in your browser using DataLab