bw.lp1D: select bandwidth for one-dimensional local linear smoother

Description Usage Arguments Value

View source: R/locpoly.R

Description

select bandwidth for one-dimensional local linear smoother

Usage

1
bw.lp1D(x, y, weight, kernel, degree, method = "cv", K = 5, H = NULL)

Arguments

x

a vector of observed values of the predictor

y

a vector of observed values of the response

weight

a vector of real numbers obtaining the weight for each observations

kernel

a kernel from the package locpol

degree

the degree of local polynomials

method

selection method, supported is 'cv'

K

the number of folds, a parameter for CV method

H

candidate values of the bandwidth; if NULL, then automathcally generated

Value

the selected bandwidth


linulysses/mcfda documentation built on Jan. 17, 2021, 8:53 a.m.