makeDailyPI: Make Daily Prediction Intervals

Description Usage Arguments Value Examples

View source: R/predictionIntervals.R

Description

This function takes the output from genDailyBoot and calculates the quantiles for a daily aggregation.

Usage

1
makeDailyPI(dailyBootOut, eList, fluxUnit = 3)

Arguments

dailyBootOut

data frame returned from genDailyBoot

eList

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

fluxUnit

number representing entry in pre-defined fluxUnit class array. printFluxUnitCheatSheet

Value

a list of 2 data frames, one for average concentration, in mg/L and one for flux (unit depends on fluxUnit argument) In each data frame the first column is Date. The remaining columns are quantiles of the flux or concentration (depending on the data frame).

Examples

1
2
3
4
5
6
7
8
9
eList <- EGRET::Choptank_eList
# This example is only based on 4 iterations
# Actual prediction intervals should be calculated on
# a much larger number of iterations (several hundred).
dailyBoot <- Choptank_dailyBootOut

dailyPcts <- makeDailyPI(dailyBoot, eList)
head(dailyPcts[["flux"]])
head(dailyPcts[["conc"]])

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