baytrends2.0.12 package

Long Term Water Quality Trend Analysis

dot-ExpLNmCens

Expectation maximization function: Log-normal case, Cens

dot-ExpLNrCens

Expectation maximization function: Log-normal case, right censured

dot-ExpNiCens

Expectation maximization function: Normal case, i censured

dot-ExpNlCens

Expectation maximization function: Normal case, left censured

dot-ExpNmCens

Expectation maximization function: Normal case

dot-ExpNrCens

Expectation maximization function: Normal case, right censured

dot-F

Print out figure title (customization of pandoc.emphasis and pandoc.st...

dot-findFile

Find Recent File Information

dot-fmtPval

Format pvalues

dot-gamANOVA

Prepare ANOVA table for GAM analysis

dot-gamCoeff

Prepare table of coefficients for GAM analysis

dot-gamDiffPORtbl

Compute and present report on percent different for log-transformed da...

dot-gamPlotCalc

plots data and gam fit vs. time

dot-H

Print out header (shortened pandoc.header)

dot-H1

Print out 1st level header (shortened pandoc.header)

dot-H2

Print out 2nd level header (shortened pandoc.header)

dot-H3

Print out 3rd level header (shortened pandoc.header)

dot-H4

Print out 4th level header (shortened pandoc.header)

dot-H5

Print out 5th level header (shortened pandoc.header)

dot-initializeResults

Initialize stat.gam.result and chng.gam.result

dot-mergeFlow

merge flow variable into analysis data frame and update iSpec with var...

dot-mergeSalinity

merge salinity into analysis data frame and update iSpec with variable...

dot-P

Paragraph (customization of pandoc.p)

analysisOrganizeData

Analysis Organization & Data Preparation

appendDateFeatures

Append Date Features

baseDay

Base Day

baseDay2decimal

Base Day

baytrends-package

baytrends: Long Term Water Quality Trend Analysis

closeOut

Document Processing Time and Other Session Time

createResiduals

Calculate GAM residuals

dectime

Decimal Time

dectime2Date

Date Conversion

detrended.flow

Create Seasonally Detrended Flow Data Set

detrended.salinity

Create Seasonally Detrended Salinty Data Set

dot-appendDateFeatures

Appends date features to data frame

dot-checkRange

Check Data Range -- function that checks for allowable values

dot-chkParameter

Reduce dataframe and parameter list based on user selected parameterFi...

dot-ExpLNiCens

Expectation maximization function: Log-normal case, i censured

dot-ExpLNlCens

Expectation maximization function: Log-normal case, left censured

dot-reAttDF

Re-attribute df based on previous df

dot-T

Print out table title (customization of pandoc.emphasis and pandoc.str...

dot-V

Print out text (blended pandoc.emphasis, .verbatim, and .strong)

dot-vTable

Print out character vector table in wrapped mode

eventProcessing

Event Processing

fillMissing

Fill Missing Values

filterWgts

Create filter weights

flwAveragePred

Flow Averaged Predictions

gamDiff

Compute an estimate of difference based on GAM results

gamPlotDisp

Plot censored gam fits vs. time

gamPlotDispSeason

Plot censored gam fits vs. time

gamTest

Perform GAM analysis

gamTestSeason

Perform GAM analysis for Specified Season

getUSGSflow

Retrieve USGS daily flow data in a wide format

impute

Impute Censored Values

imputeDF

Impute Censored Values in dataframes

layerAggregation

Aggregate data layers

loadData

Load/Clean CSV and TXT Data File

loadExcel

Load/Clean Excel sheet

loadModels

Load Built-in GAM formulas

loadModelsResid

Load Built-in GAM formulas for calculating residuals

makeSurvDF

Convert dataframe to include survival (Surv) objects

na2miss

Recode Data

nobs

Compute the Number of Non-Missing Observations

saveDF

Save R object to disk

seasAdjflow

Create Daily Seasonally-adjusted Log Flow Residuals

selectData

Select data for analysis from a larger data frame

unSurv

Converts Surv object into a 3-column matrix

unSurvDF

Converts Surv objects in a dataframe to "lo" and "hi" values

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) <doi:10.1016/j.envsoft.2019.03.027>.

  • Maintainer: Erik W Leppo
  • License: GPL-3
  • Last published: 2024-07-26