This function is used by the Supersmoother dialog.
USAGE:
menuSupsmu(data, x, y, wt=rep(1, length(y)), auto.span=T, span=NULL,
periodic=F, bass=0, plot.curve=T)
REQUIRED ARGUMENTS:
x
vector of abscissa values for the scatterplot. Missing values are allowed.
y
vector of ordinate values for the scatterplot. Missing values are allowed.
OPTIONAL ARGUMENTS:
data
an optional data frame in which to interpret
x,
y, and
wt.
wt
vector of weights for each observation. Missing values are allowed.
auto.span
if
TRUE, automatic (variable) span selection is done by means of
cross-validation.
span
fraction of observations in the smoothing window.
periodic
if
TRUE, the smoother assumes
x is a periodic variable with values in the range [0.0, 1.0] and period 1.0. An error occurs if
x has values outside this range.
bass
control of low frequency emphasis when using cross validation.
plot.curve
if
TRUE, a scatterplot with a corresponding smooth curve is generated.
VALUE:
a list with the following components:
x, the sorted input
x vector with duplicate points removed;
y, the smoothed
y vector corresponding to the output
x.