Learn R Programming

EGRETci (version 2.0.4)

trendSetUp: Interactive setup for running wBT, the WRTDS Bootstrap Test

Description

Walks user through the set-up for the WRTDS Bootstrap Test. Establishes start and end year for the test period. Sets the minimum number of bootstrap replicates to be run, the maximum number of bootstrap replicates to be run, and the block length (in days) for the block bootstrapping. The test is designed to evaluate the uncertainty about the trend between any pair of years.

Usage

trendSetUp(eList, ...)

Arguments

eList

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

additional arguments to bring in to reduce interactive options (year1, year2, nBoot, bootBreak, blockLength)

Value

caseSetUp data frame with columns year1, yearData1, year2, yearData2, numSamples, nBoot, bootBreak, blockLength, confStop. These correspond to:

Column Name Manuscript Variable
year1 \(y_s\)
year2 \(y_e\)
nBoot \(M_max\)
bootBreak \(M_min\)
blockLength \(B\)

See Also

setForBoot, wBT

Examples

Run this code
# NOT RUN {
eList <- EGRET::Choptank_eList

# Completely interactive:
# caseSetUp <- trendSetUp(eList)
# Semi-interactive:
# caseSetUp <- trendSetUp(eList, nBoot = 100, blockLength = 200)

# fully scripted:
caseSetUp <- trendSetUp(eList,
  year1=1985, 
  year2=2005,
  nBoot = 50, 
  bootBreak = 39,
  blockLength = 200)

# }

Run the code above in your browser using DataLab