Learn R Programming

fChange (version 2.1.0)

adaptive_bandwidth: Adaptive_bandwidth

Description

Computes the data-driven bandwidth using a method based on the spectral density operator which adapts to the functional data.

Usage

adaptive_bandwidth(
  X,
  kernel = bartlett_kernel,
  name = NULL,
  order = NULL,
  weighting = NULL
)

Value

Scalar value of the data-adapted bandwidth.

Arguments

X

A dfts object or data which can be automatically converted to that format. See dfts().

kernel

Kernel function. No additional parameters are needed for bartlett_kernel(), parzen_kernel(), tukey_hanning_kernel(), and quadratic_spectral_kernel().

name, order, weighting

Additional parameters if non-standard kernels, e.g. those not in fChange, are used. See references for the definitions. Name is extracted from the kernel name to select order/weighting when not given, if the function aligns with the recommended functions, see kernel parameter.

References

Rice, G., & Shang, H. L. (2017). A Plug‐in Bandwidth Selection Procedure for Long‐Run Covariance Estimation with Stationary Functional Time Series. Journal of Time Series Analysis, 38(4), 591–609.

See Also

bartlett_kernel(), truncated_kernel(), parzen_kernel(), tukey_hanning_kernel(), quadratic_spectral_kernel(), daniell_kernel(), flat_top_kernel()

Examples

Run this code
adaptive_bandwidth(generate_brownian_motion(100))
adaptive_bandwidth(electricity, parzen_kernel)

Run the code above in your browser using DataLab