Learn R Programming

fdm2id (version 0.9.5)

KERREG: Kernel Regression

Description

This function builds a kernel regression model.

Usage

KERREG(x, y, bandwidth = 1, tune = FALSE, ...)

Arguments

x

Predictor matrix.

y

Response vector.

bandwidth

The bandwidth parameter.

tune

If true, the function returns paramters instead of a classification model.

...

Other parameters.

Value

The classification model, as an object of class model-class.

See Also

npregress

Examples

Run this code
# NOT RUN {
require (datasets)
data (trees)
KERREG (trees [, -3], trees [, 3])
# }

Run the code above in your browser using DataLab