R/functions.R
find_optimal_coefs.RdThis function computes the estimated optimal coefficients based on the Scale-wise Variance Optimization approach. The detailed definition can be found in Equation (7) in Zhang et al. (2021) (https://arxiv.org/abs/2106.15997).
find_optimal_coefs(Xt, scale_weights)A matrix of dimension T by p, where T is the length of the time series and p is the number of processes.
A vector that denotes the weights on scales. All elements should be non-negative and sum to one.
A vector of the estimated optimal coefficients on the p individual processes.