powered by
This function calculates autocorrelations for vectorized moving block bootstrap samples based on the position indices of pairs of observations.
MB_Ac(pair_mat, ts)
a vector of estimated autocorrelations.
a list of position indices of pairs of observations to calculate autocorrelations. An object returned by the function pairwise_MBL.
a numeric vector of time series data.
Hossein hassani, Masoud yarmohammadi, Mohammad reza yeganegi and Leila Marvian Mashhad.
If there are missing values, this function estimates autocorrelations assuming complete data. Therefore, in such cases, the result is not valid.
mat <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 3, ncol = 2) ts <- 1:6 lgmx <- 2 l_ts <- 5 pair_mat1 = pairwise_MBL(mat, lgmx, l_ts) MB_Ac(pair_mat1, ts)
Run the code above in your browser using DataLab