modjust: Adjust Reco models

Description Usage Arguments Details Value Author(s) See Also Examples

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

1
modjust(models, alpha = 0.1, minimum = 0.8, prmtrs = list(t1 = 20), ...)

Arguments

models

Object of class "breco".

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 while loop until the p.value is below alpha. It may happen - especially when the number of data points was already low from beginning - that many data points are skipped before a solution is reached. This is prevented by this argument which acts as a brute force to the process and stops it.

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 reco an the names refer to the names of the corresponding coefficients. The default is that R_eco models with t1 > 20 are omitted.

...

Arguments passed through to reco which is used to fit the models again based on the adjusted data.

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

reco, reco.bulk

Examples

1
## See axamples at reco.bulk

flux documentation built on May 2, 2019, 6:09 a.m.