fdk_optimal_span.Rd
The optimal span is calculated based upon the Bayesian information criterion (BIC). This is a copy of the routine used in the phenocamr package.
fdk_optimal_span(
y,
x = NULL,
weights = NULL,
step = 0.01,
label = NULL,
plot = FALSE
)
Returns an optimal span to smooth a provided vector using the `loess()` smoother.