| Group: | Statistical Data Analysis |
| Topic: | Nonparametric Methods |
| See also: | sker isoreg rmed l1line |
| Function: | lowess | |
| Description: | lowess computes the robust locally weighted regression. Fitted values are computed at each of the given values x. |
| Usage: | yh = lowess (x, y{, f}) | |
| Input: | ||
| x | n x 1 vector | |
| y | n x 1 vector | |
| f | scalar | |
| Output: | ||
| yh | n x 1 vector | |
; read the geyser data
x = read ("geyser")
; sort them
x = sort(x)
; compute the estimate
yh = lowess (x[,1], x[,2])
; create a display for plotting
d = createdisplay(1,1)
; show the data and the fitted line
show (d, 1, 1, x, x[,1]~yh)
| Group: | Statistical Data Analysis |
| Topic: | Nonparametric Methods |
| See also: | sker isoreg rmed l1line |