A set of functions that can be called on an cfp_pfres object (the result of a call to pro_flux) to assess the quality of the model.
Usage
error_concentration(x, param_cols = NULL, normer = "sd")
# S3 method for class 'cfp_pfres'
error_concentration(x, param_cols = NULL, normer = "sd")
# S3 method for class 'cfp_fgres'
error_concentration(x, param_cols = NULL, normer = "sd")
# S3 method for class 'cfp_altres'
error_concentration(x, param_cols = NULL, normer = "sd")
error_efflux(x, param_cols, EFFLUX, normer = "sd", ...)
# S3 method for class 'cfp_pfres'
error_efflux(x, param_cols, EFFLUX, normer = "sd", ...)
# S3 method for class 'cfp_altres'
error_efflux(x, param_cols, EFFLUX, normer = "sd", ...)
Arguments
- x
A cfp_pfres object, that is returned by a call to pro_flux()
- param_cols
The columns that, together, define different parameters (e.g. different gases) for which NRMSEs should be calculated separately (e.g. "gas"). Defaults to the id_cols of layers_map. If no such distinction is wished, set to
character()
- normer
a character string defining the type of normalization to be applied. Can be one of
- mean
the arithmetic mean of a
- sd
the standard deviation of a (default).
- range
the difference between the range of a
- IQR
the difference between the interquantile range of a
- EFFLUX
A data.frame with (at most) one value of efflux per profile of x. Must contain any id_cols of x needed.
- ...
Further arguments passed to
efflux()
in case of cfp_fgres.
Details
For error_concentration, the way the error parameter is calculated for cfp_fgres and cfp_pfres objects is entirely different and should not be used in comparison between the two. NRMSE of cfp_pfres objects are calculated as the mean of depth-wise NRMSEs of modelled versus input gas concentrations. 'NRMSE's of cfp_fgres objects simply calculate the mean of (dcdz_sd / dcdz_ppm) per group described in param_cols.