Description Usage Arguments Value Examples
View source: R/joint_fit_process.R
joint_fit_process
Is an overarching analysis function that does a lot of heavy lifting:
Computes a periodic and trigonometric fit (using periodic_fit_process and trigonometric_fit_process)
Analyzes the two fits and excludes out any fits where the the degrees of freedom is less than expected
Writes a data table of AIC and BIC values for analysis.
Returns fitted values for the periodic and trigonometric fits for plotting.
Returns a list of fitted and predicted values of periodically repeating data. This works over a list of data sites efficiently processing multiple locations
1 | joint_fit_process(data, model_stats_filename)
|
data |
a data frame with three columns: date (a POSIX date), time (the decimal time) and the value |
model_stats_filename |
where you want the model stats file to be stored |
A data frame of fitted values than we can use for plotting
1 | # This really is an overarching function that does the master fitting, since we are doing a lot of things repeatedly this seemed to be the easiest to avoid errors!
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.