powered by
Compute some weights for long-run variance. This code comes directly from the source code of cointReg; see getLongRunWeights.
getLongRunWeights
getLongRunWeights(n, bandwidth, kernel = "ba")
Length of weights' vector
A number for the bandwidth
The kernel function; see getLongRunVar for possible values
getLongRunVar
List with components w containing the vector of weights and upper, the index of the largest non-zero entry in w
w
upper
# NOT RUN { CPAT:::getLongRunWeights(10, 1) # }
Run the code above in your browser using DataLab