View source: R/LG_bandwidths_advanced.R
LG_bandwidths_advanced | R Documentation |
The original bandwidth-algorithm gives a global result that does not work so good when used in the periphery of the data. This internal function enables us to combine the bandwidths from the original algorithm and those found by a nearest-neighbour strategy where the selection is made with regard to the requirement that a certain percentage of the total number of lagged points should be contained inside the region specified by a central point and a bandwidth-square.
LG_bandwidths_advanced(
save_dir = NULL,
TS,
lag_max,
.bws_mixture = c("mixture", "local", "global"),
bw_points = c(25, 35),
levels
)
save_dir |
A specification of the directory to be used when
saving (and loading) data. The default value |
TS |
The time series we want to investigate by means of a Local Gaussian Approximation (and later on with Local Gaussian Spectra). |
lag_max |
The number of lags to include in the analysis. |
.bws_mixture |
An argument that specifies how the global
bandwidths and those obtained by the nearest-neighbour strategy
should be combined. The three available options are
|
bw_points |
A vector, default |
levels |
The points at which we (for different lags) want
to center the "bandwidth-squares". The format of
|
A list with the two arrays h
and convergence
.
The array h
contains the bandwidths to be used when
finding local Gaussian estimates for the lagged pairs (of the
time series TS
) from 1 to lag_max
, whereas the
array convergence
contains information related to the
numerical convergence of the bandwidths returned from the
global algorithm.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.