wBT: Run the WBT (WRTDS Bootstrap Test)

Description Usage Arguments Value See Also Examples

View source: R/wBTCode.R

Description

Runs the WBT for a given data set to evaluate the significance level and confidence intervals for the trends between two specified years. The trends evaluated are trends in flow normalized concentration and flow normalized flux. Function produces text outputs and a named list (eBoot) that contains all of the relevant outputs. Check out runPairsBoot and runGroupsBoot for more bootstrapping options.

Usage

1
2
wBT(eList, caseSetUp, saveOutput = TRUE, fileName = "temp.txt",
  startSeed = 494817)

Arguments

eList

named list with at least the Daily, Sample, and INFO dataframes. Created from the EGRET package, after running modelEstimation.

caseSetUp

data frame. Returned from trendSetUp.

saveOutput

logical. If TRUE, a text file will be saved in the working directory.

fileName

character. Name to save the output file if saveOutput=TRUE.

startSeed

setSeed value. Defaults to 494817. This is used to make repeatable output.

Value

eBoot, a named list with bootOut,wordsOut,xConc,xFlux values. bootOut is a data frame with the results of the bootstrapping tests. wordsOut is a character vector describing the results. xConc, xFlux are vectors of length iBoot, of the change in flow normalized concentration or flux computed by each bootstrap replicate (mg/L). pConc and pFlux are vectors of length iBoot, of the change in flow normalized concentration or flux computed from each bootstrap replicate expressed as

See Also

trendSetUp, setForBoot, runGroupsBoot, runPairsBoot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(EGRET)
eList <- Choptank_eList
## Not run: 
  caseSetUp <- trendSetUp(eList,
  year1=1985, 
  year2=2005,
  nBoot = 50, 
  bootBreak = 39,
  blockLength = 200)
eBoot <- wBT(eList,caseSetUp)

## End(Not run)

USGS-R/EGRETci documentation built on Oct. 17, 2018, 8:14 p.m.