Learn R Programming

rpatrec (version 1.0.1)

loess.rpatrec: Use the inbuilt function

Description

Use local regression to fit a global non-parametric model to the data. If the span is smaller than 1 the regression is truly local, if it is larger than 1 all data points in the sample are taken into account

Usage

loess.rpatrec(input, span = 0.75, ...)

Arguments

input
Time series data passed to be smoothed
span
The main smoothing parameter.
...
Optional: Other arguments passed to loess

Value

Smoothed time series data only, no additional output.

Details

For an overview of the package capabilities, click here rpatrec. This function is purely included to provide the standard interface coherent with other smoothers to the user.

Examples

Run this code
## Not run: ------------------------------------
# #create a standard HS pattern:
# a <- generator()
# #add noise to this patterns
# b <- noise(a,'white',10)
# #smooth to regain the signal
# c <- loess.rpatrec(b)
## ---------------------------------------------

Run the code above in your browser using DataLab