aws.irreg(y, x, hmax = NULL, aws=TRUE, memory=FALSE, varmodel = "Constant", lkern = "Triangle", aggkern = "Uniform", sigma2 = NULL, nbins = 100, hpre = NULL, henv = NULL, ladjust =1, varprop = 0.1, graph = FALSE)d %in% 1:2hmax specifies the maximal bandwidth. Unit is binwidth in the first dimension.sigma2 allows to specify the variance in case of varmodel="Constant", estimated if not given.graph=TRUE intermediate results are illustrated after each iteration step. Defaults to graph=FALSE.aws with slotslength: length(y)awslpaws, link{awsdata}, lpawsrequire(aws)
# 1D local constant smoothing
demo(irreg_ex1)
# 2D local constant smoothing
demo(irreg_ex2)Run the code above in your browser using DataLab