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

View source: R/locpoly.R

bw.lp1DR Documentation

select bandwidth for one-dimensional local linear smoother

Description

select bandwidth for one-dimensional local linear smoother

Usage

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


ZhuolinSong/wpe documentation built on Oct. 31, 2022, 7:38 p.m.