Learn R Programming

EGRETci (version 1.0.2)

ciBands: ciBands

Description

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

Usage

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

vector high and low confidence interval percentages

Examples

Run this code
# NOT RUN {
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) 
   repAnnualResults[[n]] <- bootAnnual(eList, blockLength)
}

CIAnnualResults <- ciBands(eList, repAnnualResults)

# }

Run the code above in your browser using DataLab