View source: R/estimate_curve.R
estimate_curve | R Documentation |
This function performs the smoothing of a curve using the Nadaraya-Watson estimator given a particular kernel.
estimate_curve( curve, grid, bandwidth, bandwidth_times = NULL, kernel_name = "epanechnikov", n_obs_min = 1 )
curve |
List, with two entries:
|
grid |
Vector, sampling points at which the curve is estimated. |
bandwidth |
Vector, estimation of the bandwidth. If a unique element is provided, we use a unique bandwidth for the curve. However, if a vector is given, the bandwidth changes depending on the sampling points. |
bandwidth_times |
Vector (default = NULL), times at which the bandwidths
have been estimated. Only used if the parameter |
kernel_name |
String (default = 'epanechnikov'), the kernel used for the estimation:
|
n_obs_min |
Integer (default = 1), minimum number of observation for the smoothing. |
List, with two entries:
$t Sampling points.
$x Estimated points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.