Description Usage Arguments Value Examples
This function computes the exact conditional bias, variance, and MSE of a kernel estimator. 'Conditional' means conditional given the design. The estimator must be a linear smoother from this package. The true regression function and response variance must both be known, therefore this function is only useful for theoretical examples.
1 2 3 4 5 6 7 8 9 |
x_data |
a vector giving the x-values in the data set |
h |
a scalar, giving the bandwidth |
m |
an R function, corresponding to the true regression function |
s2 |
a scalar giving the true response variance |
estimator |
the estimator used ( |
t |
(optional) a vector specifying the points at which to evaluate the estimator. The default is a sequence of length 100 spanning the range of the x-data. |
... |
additional arguments to be passed to |
A list with 4 components:
t |
a vector containing the evaluation points used |
bias |
a vector containing the bias of the estimator at the evaluation points |
var |
a vector containing the variance of the estimator at the evaluation points |
mse |
a vector containing the mean-squared error of the estimator at the evaluation points |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.