MB_Ac | R Documentation |
This function calculates autocorrelations for vectorized moving block bootstrap samples based on the position indices of pairs of observations.
MB_Ac(pair_mat, ts)
pair_mat |
a list of position indices of pairs of observations to calculate autocorrelations. An object returned by the function pairwise_MBL. |
ts |
a numeric vector of time series data. |
If there are missing values, this function estimates autocorrelations assuming complete data. Therefore, in such cases, the result is not valid.
a vector of estimated autocorrelations.
Hossein hassani, Masoud yarmohammadi, Mohammad reza yeganegi and Leila Marvian Mashhad.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.