lpe: local polynomial estimation

Description Usage Arguments Value Examples

View source: R/lpe.R

Description

main function(Use R to do local polynomial estimation and make a plot of the beta_hat.)

Usage

1
lpe(X, Y, p, kernel)

Arguments

X

the X of multivariate sample point (X,Y)

Y

the X of multivariate sample point (X,Y)

p

the order of polynomial

kernel

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

Value

three plots of the polynomial estimation(the Plot of X and estimated function,the plot of beta_hat with optimal bandwidth,plots of beta_hat with the bandwidths of the interval (0,1))

Examples

1
2
3
4
## Not run: 
lpe(X,Y,P,"Triangle")

## End(Not run) 

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