trigonometric_fit: Compute a baseline and periodic fit to data.

Description Usage Arguments Value Examples

View source: R/trigonometric_fit.R

Description

trigonometric_fit Returns fitted and predicted values of periodically repeating data using sine and cosine functions.

Usage

1
trigonometric_fit(data_in, regression_formula)

Arguments

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

Value

A list of two things: the fitted values at a 95

Examples

1
# To be filled in later

jmzobitz/periodicFitting documentation built on July 25, 2021, 8:02 p.m.