op_bd: optimal bandwidth

Description Usage Arguments Value Examples

View source: R/op_bd.R

Description

main function(get the optimal bandwidth and make a plot of f_hat(x) with optimal bandwidth.)

Usage

1

Arguments

X

several samples

kernel

the type of kernel function(6 types of kernel functions in this function)

Value

two plots (the Plot of CV_score function,the plot of f_hat(x) with optimal bandwidth)

Examples

1
2
3
4
5
## Not run: 
X<-mtcars$wt
op_bd(X,"Triangle")

## End(Not run) 

hehaowe/desktop-tutorial documentation built on Dec. 23, 2021, 11:15 p.m.