smooth_loess_custom: Loess fit on finite value pairs. Ignores overfit warnings,...

View source: R/util_generic.R

smooth_loess_customR Documentation

Loess fit on finite value pairs. Ignores overfit warnings, returns input data on error

Description

if a robust loess fit is desired, add parameter family='symmetric' which will be passed to loess() function

Usage

smooth_loess_custom(
  x,
  y,
  span = 0.1,
  remove_na_yval = TRUE,
  min_values = 10,
  ...
)

Arguments

x

numeric vector

y

numeric vector

span

span argument for loess() function

remove_na_yval

set all output values where is.na(y) to NA. default is TRUE

min_values

minimum number of values required (if less, input parameter y is returned). default is 10

...

passed to loess() function


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.