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