loess_smoother: Function to smooth an _x_-_y_ pair with loess (local...

View source: R/smoother_functions.R

loess_smootherR Documentation

Function to smooth an x-y pair with loess (local regression).

Description

Function to smooth an x-y pair with loess (local regression).

Usage

loess_smoother(x, y, span = 0.75, degree = 2, surface = "interpolate")

Arguments

x

Numeric vector.

y

Numeric vector.

span

Smoother span.

degree

Degree of the polynomials to be used.

surface

A loess.control option. Can take the value "interpolate" or "direct", If "direct", the loess model will predict outside its training space.

Value

Numeric vector with the length of x or y.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.