The function runs a linear model on a single water quality parameter and a water quality algorithm and returns a data frame containing the following: r^2, p-value, slope, and intercept of the model
extract_lm(parameter, algorithm, df)
A string specifying water quality parameter
A string specifying water quality algorithm
data frame containing the values for parameter and algorithm arguments
A data frame of the model results
Johansen, Richard; et al. (2018). Evaluating the portability of satellite derived chlorophyll-a algorithms for temperate inland lakes using airborne hyperspectral imagery and dense surface observations. Harmful Algae. 76. 10.1016/j.hal.2018.05.001.
R Core Team (2018). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/.
Other extract_lm:
extract_lm_cv_all()
,
extract_lm_cv_multi()
,
extract_lm_cv()