Home

Awesome

<!-- README.md is generated from README.Rmd. Please edit that file -->

baytrends

<!-- badges: start --> <!-- CRAN check ALL [![cran checks](https://badges.cranchecks.info/summary/baytrends.svg)](https://cran.r-project.org/web/checks/check_results_baytrends.html) All flavors [![R-CMD-check](https://github.com/tetratech/baytrends/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tetratech/baytrends/actions/workflows/R-CMD-check.yaml) -->

CRAN
status Windows cran
checks Linux cran
checks OSX cran
checks

Lifecycle:
stable Maintenance

<!-- badges: end --> <!-- CRAN version and downloads have errors -->

The baytrends package was developed to enable users to evaluate long-term trends in the Chesapeake Bay using a Generalized Additive Modeling (GAM) approach. The model development includes selecting a GAM structure to describe nonlinear seasonally-varying changes over time, incorporation of hydrologic variability via either a river flow or salinity, the use of an intervention to deal with method or laboratory changes suspected to impact data values, and representation of left- and interval-censored data. This approach, which is fully transferable to other systems, allows for Chesapeake Bay water quality data to be evaluated in a statistically rigorous, yet flexible way to provide insights to a range of management- and research-focused questions.

Installation

The CRAN version of baytrends from CRAN can be installed with the code below.

install.packages("baytrends")

In some cases not all dependent packages are available on the user’s system. In these cases installing all dependencies is necessary.

install.packages("baytrends", dependencies = TRUE)

The development version (with vignettes) from GitHub can be installed with the code example below using the remotes package.

if(!require(remotes)){install.packages("remotes")}  #install if needed
install_github("tetratech/baytrends", force = TRUE, build_vignettes = TRUE)