Description Usage Arguments Value Examples
Kernel regression with a pre-fixed bandwidth
1 2 3 4 5 6 7 | KernelReg(
x,
y,
bandwidth.method = "CV",
kernel = gaussian.kernel,
cents = c(0.03, 0.25, 0.5, 0.75, 0.97)
)
|
x |
the explanatory variable - numeric |
y |
the response variable - numeric |
bandwidth.method |
the bandwidth method choice: CV or plug-in. Default is CV. |
kernel |
kernel fucntion to choose: gaussian, trig, circular. See KernelFunctions.R. Default is set to gaussian |
cents |
A numeric vector that represents the centiles calculated. Default is set to cents=c(0.03,0.25,0.5,0.75,0.97) ) |
Plots the centile curves and returns a list object containing bandwidth value, kernel and estimated centiles values.
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.