Usage
lpaws(y, degree = 1, hmax = NULL, aws = TRUE, memory = FALSE, lkern = "Triangle", homogen = TRUE, earlystop = TRUE, aggkern = "Uniform", sigma2 = NULL, hw = NULL, ladjust = 1, u = NULL, graph = FALSE, demo = FALSE)
Arguments
y
Response, either a vector (1D) or matrix (2D). The corresponding design is assumed to be a regular grid in 1D or 2D, respectively.
degree
Polynomial degree of the local model
aws
logical: if TRUE structural adaptation (AWS) is used.
memory
logical: if TRUE stagewise aggregation is used as an additional
adaptation scheme.
lkern
character: location kernel, either "Triangle", "Plateau", "Quadratic", "Cubic" or "Gaussian"
homogen
logical: if TRUE the function tries to determine regions
where weights can be fixed to 1. This may increase speed.
earlystop
logical: if TRUE the function tries to determine points
where the homogeneous region is unlikely to change in further steps. This may increase speed.
aggkern
character: kernel used in stagewise aggregation, either "Triangle" or "Uniform"
sigma2
Error variance, the value is estimated if not provided.
hw
Regularisation bandwidth, used to prevent from unidentifiability of
local estimates for small bandwidths.
ladjust
factor to increase the default value of lambda
u
a "true" value of the regression function, may be provided to
report risks at each iteration. This can be used to test the propagation condition with u=0
graph
logical: If TRUE intermediate results are illustrated graphically. May significantly slow down the computations in 2D. Please
avoid using the default X11() on systems build with cairo, use
X11(type="Xlib") inst
demo
logical: if TRUE wait after each iteration