| Library: | smoother |
| See also: |
| Quantlet: | supsmo | |
| Description: | calculates the super smoother |
| Usage: | sm=supsmo(xy) | |
| Input: | ||
| xy | n x 2 matrix of user-defined data. In the first column the independent and in the second column the dependent variable are represented. | |
| Output: | ||
| sm | n x 2 matrix, the first column contains the independent variable xy[,1] and the second column the fitted values. | |
library("smoother")
library("plot")
xy = read("motcyc")
sm=supsmo(xy)
sm = setmask(sm,"line","red")
plot(xy, sm)
plot of the super smoother and the original data