| density_bandwidth | R Documentation |
Select the bandwidth on the ordinary estimator, as required by the debiasing method. Density estimation uses a normal-reference rule and regression uses K-fold cross-validation of the ordinary local-linear smoother.
density_bandwidth(x, method = "normal_reference", candidates = NULL,
block_size = 512L)
regression_bandwidth(x, y, candidates = NULL, n_folds = 5L,
random_state = 0L)
x |
Numeric observations or covariates. |
y |
Numeric responses. |
method |
For density estimation, either |
candidates |
Optional positive candidate bandwidths for cross-validation. |
block_size |
Positive pairwise-computation block size for density cross-validation. |
n_folds |
Number of cross-validation folds. |
random_state |
Optional local random seed. |
A positive numeric scalar.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.