transform_BCs: Develop transformations of basin characteristics.

Description Usage Arguments Details Value

View source: R/transform_BCs.R

Description

The function transform_BCs develops transformations of basin characteristics to induce linearity.

Usage

1
transform_BCs(BCs, debug.flg = F, BC_sfx = "", destination = "")

Arguments

BCs

A data frame of basin characteristics from winnow_BCs.

debug.flg

(optional) A logical indicating if verbose outputs are required from variable transformation. The default is FALSE.

BC_sfx

(optional) A character string appending certain condition onto saved file names.

destination

(optional) A character string specfying a file name, without an extension, to which to write intermediate results. The default is not to save results.

Details

Receives the "winnowed" basin characteristics (BCs) produced by winndow_BCs and then determines need for transformation of BCs by computing some summary statistics and then skewness for original and centered data (if needed) and different transformations (currently powers of 1/10, 1/5, 1/3, 1/2, 2/3, 3/2, 2, 3, 5 and 10 plus log10 and 10^) following addition of constants as needed to remove negative and non-positive values as needed, depending on the transformation. Then skewness information is used to choose the preferred transformation as the one which gives the skewness nearest to zero. Following selection of best transformation, post-transformation centering is applied as needed.

Value

A list of four elements:

finalBCs

A data frame of the final, transformed basin characteristics.

transfBC.info

A data fram of information to recreate variable transformations. This includes the constant added before transformation, the transformation used and the constant added after transformation.

finalBC.VIFs

The variance inflation factors between basin characteristics.

finalBC.corr

The cross-correlation matrix of final, transformed basin characteristics.


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