optimal_span: Calculates the optimal span for a loess spline smoother based...

Description Usage Arguments Examples

Description

Calculates the optimal span for a loess spline smoother based upon the bayesian information criterion (BIC).

Usage

1
2
optimal_span(y, x = NULL, weights = NULL, start = 0.01, step = 0.01,
  label = NULL, plot = FALSE)

Arguments

y:

a vector with measurement values to smooth

x:

a vector with dates / time steps

weights:

optional values to weigh the loess fit with

step:

span increment size

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Internal function only, should not be used stand-alone.

l = sin(1,10,0.01)
l = l + runif(length(l)))
optimal.span(l, plot = TRUE)

## End(Not run)

khufkens/cropmonitor documentation built on May 31, 2019, 8:29 a.m.