comp: Compare the models with a specifc number of variables.

Description Usage Arguments Details Value

View source: R/comp.R

Description

A sub-function for single comparison of models in a flow regime.

Usage

1
2
comp(regimes, regime_i, numvars, unfilled_FDCs, comp.wys, top_n_list, n, expl,
  WY.lim = 10, zero.val = 0.001, cens_level = 0.005, plot.dir = NULL)

Arguments

regimes

A list of flow regimes, where each element is a character vector indicating the frequencies of each quantile.

regime_i

The index to which flow regime is to be used.

numvars

The maximum number of variables considered in the regression.

unfilled_FDCs

A matrix of the raw FDC quantiles for each site. This is derived from the output of calcEmpFDCs.

comp.wys

A vector indicating how many complete water years were present for each site. This is derived from the output of calcEmpFDCs.

top_n_list

Output from compile.vars

n

The maximum number of models subsetted. Prior to 9/2016, the default was 20.

expl

A data frame of the potential explanatory variables, derived from the output of getBasinChar.

WY.lim

(optional) The minimum number of water years required to be included in the formation of regional regressions. Only reference-quality sites with at least this many complete water years will be used. The default is 10.

zero.val

(optional) The value to which zeroes or negative quantiles will be set to. The default is 0.001.

cens_level

(optional) The value establishing left censoring. The default is 0.005.

plot.dir

A directory to which plots are to be saved. The default behavior save.dir=NULL does not create plots.

Details

Lorem ipsum...

Value

Unclear. Used by best.models, among others.


wfarmer-usgs/PUBAD documentation built on May 4, 2019, 5:21 a.m.