Learn R Programming

EGRETci (version 1.0.0)

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
library(EGRET)
eList <- Choptank_eList
nBoot <- 100
blockLength <- 200
repAnnualResults <- vector(mode = "list", length = nBoot)
for(n = 1:nBoot){
   annualResults <- bootAnnual(eList, blockLength)
   repAnnualResults[[n]] <- bootAnnual(eList, blockLength)
}

CIAnnualResults <- ciBands(eList, repAnnualResults)

Run the code above in your browser using DataLab