Description Usage Arguments Value
View source: R/piecewise_linear_fit.R
piecewise_linear_fit
Returns fitted and predicted values of periodically repeating data. This code first subtracts away the residual and does a segmented fit (segmented package)
1 | piecewise_linear_fit(data_in, regression_formula)
|
data_in |
a data frame with three columns: date (a POSIX date), time (the decimal time) and the value |
regression_formula |
a formula for the regression that we are computing for the baseline fit |
A list of two things: the fitted values at a 95
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.