loess2

Surface fit using local regression.

Contents

Syntax

g = loess2(x,y,z,newx,newy,alpha,lambda,robustFlag)

Description

apply loess surface fit -- nonparametric regression
x,y,z  data points
newx,newy,g  fitted points
alpha  smoothing  typically 0.25 to 1.0
lambda  polynomial order 1 or 2
if robustFlag is present, use bisquare
refer to Cleveland, Visualizing Data
Note: If x and y are not on the same scale, they should be standardized first.

See also

loess