

   smooth {eda}                                 R Documentation

   MMeeddiiaann SSmmooootthhiinngg

   DDeessccrriippttiioonn::

        This function applies Tukey's smoothing method 3RSR to
        `x'.

   UUssaaggee::

        smooth(x)

   AArrgguummeennttss::

          x: a vector or time series

   VVaalluuee::

        A vector or time series containing the smoothed values.
        Note that there are other smoothing methods which pro-
        vide rather better results. This one was designed for
        hand calculations.

   NNoottee::

        3R stands for Repeated running `median's of 3.

   RReeffeerreenncceess::

        Tukey, J. W. (1977).  Exploratory Data Analysis, Read-
        ing Massachusetts: Addison-Wesley.

   SSeeee AAllssoo::

        `lowess'; `loess', `supsmu' and `smooth.spline' in
        package `modreg'.

   EExxaammpplleess::

        library(eda)
        data(presidents)
        presidents[is.na(presidents)] <- 0
        plot(presidents)
        lines(smooth(presidents))

