modjust {flux} | R Documentation |
Adjust Reco models
Description
The function allows to adjust fitted R_{eco}
models by eliminating the maximum R_{eco}
flux as long as the p.value of the linear model of the residuals regressed against original fluxes is above a given threshold. In addition models with parameters that went astray may be skipped. The default is that R_{eco}
models with t1 > 20 are omitted.
Usage
modjust(models, alpha = 0.1, minimum = 0.8, prmtrs = list(t1 = 20), ...)
Arguments
models |
Object of class " |
alpha |
Alpha level against which the p.value of the linear model of the residuals against original fluxes shall be tested. |
minimum |
The minimum proportion of data points that should be kept. The optimisation runs in a |
prmtrs |
List object that allows to skip models according to thresholds set for coefficients of the fitted regression models. The list has to be set up according to the actual method used in |
... |
Arguments passed through to |
Details
When fitting R_{eco}
models based on one or few measurement campaigns in the field it may happen that outliers in the extremes of the temperature gradient have a very high influence on the fit. Although the model could be fit in the first place this often leads to unrealistic predicted fluxes. The adjustment via modjust
leads to better overall performance and reliability of the bulk modelling.
Value
Returns a "breco
" object with the possibly adjusted models. All returned models gain a list entry within the mod
object (see reco
and reco.bulk
) named n.out.adj
giving the number of omitted data points. Fall.back models (see reco.bulk
) in models
are left untouched.
Author(s)
Gerald Jurasinski, gerald.jurasinski@uni-rostock.de,
based on ideas by Sascha Beetz, sascha.beetz@uni-rostock.de
See Also
Examples
## See axamples at reco.bulk