calculate_rate: Calculate the time rate-of-change in dissolved oxygen...

View source: R/calculate_rate.R

calculate_rateR Documentation

Calculate the time rate-of-change in dissolved oxygen concentrations. This function will fit a GAM assuming a scaled t distribution.

Description

Calculate the time rate-of-change in dissolved oxygen concentrations. This function will fit a GAM assuming a scaled t distribution.

Usage

calculate_rate(data, response, k = 24, bs = "cr")

Arguments

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.

Value

A tibble of the data passed to the function is returned, including the fitted values and the derivatives.


gnishihara/gnnlab documentation built on April 13, 2025, 5:48 p.m.