Local Polynomial Regression Fitting with Variability bands
loess.sd.RdNonparametric estimation of mean function with variability bands.
Arguments
- x
a vector of values for the predictor variable \(x\).
- y
a vector of values for the response variable \(y\).
- nsigma
a multiplier for the standard deviation function.
- col, bg, pch, cex
numeric or character codes for the color(s), point type and size of points; see also
par.- col.smooth
color to be used by
linesfor drawing the smooths.- span
smoothing parameter for
loess.- degree
the degree of the polynomials to be used, see
loess.- ...
further argument passed to the function
loess.
Value
The function loess.sd computes the loess smooth for the mean function and the mean plus and minus k times the standard deviation function.
The function panel.loess can be used to add to a scatterplot matrix panel a smoothing of mean function using loess with variability bands at plus and minus nsigmas times the standard deviation.
Author
Luca Scrucca luca.scrucca@unipg.it
