Package: baytrends Type: Package Title: Long Term Water Quality Trend Analysis Description: Enable users to evaluate long-term trends 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. The approach has been applied to water quality data in the Chesapeake Bay, a major estuary on the east coast of the United States to provide insights to a range of management- and research-focused questions. Methodology described in Murphy (2019) . Version: 2.0.14 Authors@R: c( person(given = "Rebecca", family = "Murphy", role = "aut", comment = c(ORCID = "0000-0003-3391-1823")), person(given = "Elgin", family = "Perry", role = "aut"), person(given = "Jennifer", family = "Keisman", role = "aut", comment = c(ORCID = "0000-0001-6808-9193")), person(given = "Jon", family = "Harcum", role = "aut", comment = c(ORCID = "0000-0001-5910-5243")), person(given = c("Erik", "W"), family = "Leppo", role = c("aut", "cre"), email = "Erik.Leppo@tetratech.com", comment = c(ORCID = "0000-0001-8026-7474"))) Depends: R (>= 4.1.0) License: GPL-3 LazyData: TRUE RoxygenNote: 7.3.3 Encoding: UTF-8 Imports: dataRetrieval, digest, dplyr, fitdistrplus, grDevices, lubridate, knitr, memoise, mgcv, pander, plyr, readxl, sessioninfo, survival, tibble, tidyr Suggests: devtools, imputeTS, markdown, nlme, rmarkdown, testthat URL: https://github.com/tetratech/baytrends BugReports: https://github.com/tetratech/baytrends/issues VignetteBuilder: knitr Collate: analysisOrganizeData.R appendDateFeatures.R baytrends.R checkRange.R chkParameter.R closeOut.R createResiduals.R data.R detrended.flow.R detrended.salinity.R expectMaxFunctions.r findFile.R flwAveragePred.R fmtPval.R gamDiff.R gamPlotCalc.r gamPlotDisp.R gamPlotDispSeason.R gamTables.R gamTest.r gamTestSeason.r getUSGSflow.R headers2.R imputeCensored.R initializeResults.r layerAggregation.R loadData.R loadExcel.R loadModels.R loadModelsResid.R makeSurvDF.R mergeFlow.R mergeSalinity.R reAttDF.R saveDF.R seasAdjflow2.R selectData.R smwrBase_baseDay.R smwrBase_baseDay2decimal.R smwrBase_dectime.R smwrBase_dectime2Date.R smwrBase_eventProcessing.R smwrBase_fillMissing.R smwrBase_na2miss.R supportFunctions.R unSurv.R gdata_nobs.R zzz.R Config/pak/sysreqs: libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev libicu-dev libxml2-dev libssl-dev libproj-dev libsqlite3-dev libudunits2-dev libx11-dev Repository: https://tetratech.r-universe.dev Date/Publication: 2026-02-24 17:41:14 UTC RemoteUrl: https://github.com/tetratech/baytrends RemoteRef: HEAD RemoteSha: a2d278b85c4539c3b2a8ea064384988ce083dbc0 NeedsCompilation: no Packaged: 2026-05-26 05:46:38 UTC; root Author: Rebecca Murphy [aut] (ORCID: ), Elgin Perry [aut], Jennifer Keisman [aut] (ORCID: ), Jon Harcum [aut] (ORCID: ), Erik W Leppo [aut, cre] (ORCID: ) Maintainer: Erik W Leppo