View source: R/calculate_rate.R
calculate_rate | R Documentation |
Calculate the time rate-of-change in dissolved oxygen concentrations. This function will fit a GAM assuming a scaled t distribution.
calculate_rate(data, response, k = 24, bs = "cr")
data |
is a tibble containing one day of oxygen data. |
response |
is the name of the variable containing the oxygen data. |
k |
= 24 is the number of basis functions used to fit the GAM. |
bs |
= "cr" the type of basis function to use in the GAM. |
A tibble of the data passed to the function is returned, including the fitted values and the derivatives.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.