The fraction of prediction that is due to a correction.
Source:R/loadComp.R
getCorrectionFraction.RdComputes the fraction of total concentration or flux prediction that is attributable to a correction such as the residuals correction of composite method models.
loadComp models: The correction fraction for a composite method
(loadComp) model is defined here as:
$$CF = (\sum |R| \Delta t) / (\sum L \Delta t)$$
where \(\sum\) indicates a sum over all predictions, \(L\) is the vector of composite predictions of flux or concentration, \(R\) is the vector of interpolated residuals in the same format (flux or concentration, non-log space) as \(L\), and \(\Delta t\) is the vector of time periods represented by the predictions.
Arguments
- load.model
The load model from which to pull the correction fraction.
- flux.or.conc
character. Should the metric be computed with respect to predictions of flux rate or concentration?
- newdata
The data for which to compute the correction fraction, usually containing daily or instantaneous discharge.
- ...
Other arguments passed to class-specific implementations of getCorrectionFraction.
- na.rm
logical. Should predictions with NA values be excluded?
Value
A value between 0 and 1 indicating the fraction of total load that is attributed to a correction.
See also
Other diagnostics:
estimateRho(),
residDurbinWatson()