extract_lm: Run linear model (lm)

View source: R/extract_lm_functions.R

extract_lmR Documentation

Run linear model (lm)

Description

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

Usage

extract_lm(parameter, algorithm, df)

Arguments

parameter

A string specifying water quality parameter

algorithm

A string specifying water quality algorithm

df

data frame containing the values for parameter and algorithm arguments

Value

A data frame of the model results

References

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/.

See Also

Other extract_lm: extract_lm_cv_all(), extract_lm_cv_multi(), extract_lm_cv()


waterquality documentation built on Aug. 8, 2023, 1:07 a.m.