ciBands: Confidence Interval Band Calculations

Description Usage Arguments Examples

View source: R/plotCIs.R

Description

Computes confidence intervals for Flow-Normalized Concentration and Flow-Normalized Flux for a WRTDS model.

Usage

1
ciBands(eList, repAnnualResults, probs = c(0.05, 0.95))

Arguments

eList

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

repAnnualResults

named list returned from bootstrapping process.

probs

numeric vector low and high confidence interval frequencies, default = c(0.05, 0.95) (which results in a 90% confidence interval).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
library(EGRET)
eList <- Choptank_eList
nBoot <- 100
blockLength <- 200
## Not run: 

repAnnualResults <- vector(mode = "list", length = nBoot)
for(n in 1:nBoot){
   annualResults <- bootAnnual(eList, blockLength, startSeed = n) 
   repAnnualResults[[n]] <- annualResults
}

CIAnnualResults <- ciBands(eList, repAnnualResults)


## End(Not run)

EGRETci documentation built on April 13, 2021, 5:08 p.m.