Hcov | R Documentation |
This function implements a method for estimating bivariate kernel bandwidth based on data covarage. The method starts with the plug in estimate (which usually overfits the data), and then increase this bandwidth value until the desired coverage is obtained. Region coverage is evaluated in an out sample design, using a k fold cross validation scheme.
Hcov(Y, shape = seq(1, 10, 0.5), k = 20, tau = 0.9, display_plot = TRUE)
Y |
A matrix containing bivariate data values. |
shape |
A sequence of values which controls plug in estimator increasing. |
k |
A number indicating k fold cross validations to be performed. |
tau |
The desired region coverage |
display_plot |
A logical indicating if a plot must be displaying, during the function estimation process, summarizing the results. |
This function return a diagonal kernel bandwidth matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.