Learn R Programming

PCObw (version 0.0.1)

PCObw-package: Bandwidth Selector with Penalized Comparison to Overfitting Criterion

Description

Bandwidth selector according to the Penalised Comparison to Overfitting (P.C.O.) criterion as described in Varet, S., Lacour, C., Massart, P., Rivoirard, V., (2019). It can be used with univariate and multivariate data.

Arguments

Author

S. Varet.

Maintainer: S. Varet <suzanne.varet@universite-paris-saclay.fr>

Details

bw.L2PCO(x_i, ...)

bw.L2PCO.diag(x_i, ...)

select the optimal bandwith according to PCO criterion where x_i are the data (a numeric matrix or a numeric vector).

References

Varet, S., Lacour, C., Massart, P., Rivoirard, V., (2019). Numerical performance of Penalized Comparison to Overfitting for multivariate kernel density estimation. hal-02002275. https://hal.archives-ouvertes.fr/hal-02002275

Examples

Run this code

# load univariate data
data("gauss_1D_sample")
 
# computes the optimal bandwith for the sample x_i with all parameters set to their default value 
bw.L2PCO(gauss_1D_sample) 

  

Run the code above in your browser using DataLab