qat_analyse_lim_rule_sigma_1d: Perform a sigma lim-rule-check

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

View source: R/qat_analyse_lim_rule_sigma_1d.R

Description

This check tests data on whether it exceeds a threshold formed by multiple standard derviations away from the mean.

Usage

1
qat_analyse_lim_rule_sigma_1d(measurement_vector, sigma_factor)

Arguments

measurement_vector

The measurement vector, which should be tested

sigma_factor

Multiplier of standard derivation, which determin the maximum allowed deviation from the mean

Details

First the mean and the standard derivation of the measurement vector will be calculated. After this the limits will be determined by

lim_{\pm} = μ \pm f σ,

where f is the given sigma factor.

Value

It returns a list with the following entries:

flagvector

A vector of length of measurement vector. For every element of the measurement vector the flagvector contains a -1, if its exceeding its dedicated minimum vector element, a 1, if its exceeding its dedicated maximum vector element, or a 0, when no exceeding has happend.

sigma_factor

Give back the given sigma\_factor

meanofvector

Give back the calculated mean of the measurement vector

sdofvector

Give back the calculated standard deviation of the measurement vector

Author(s)

Andre Duesterhus

References

Meek, D.W., Hatfield, J.L. (1994) Data quality checking for single station meteorological databases, \_Agricultural and Forest Meteorology\_, *69* (1-2), 85-109.

See Also

qat_plot_lim_rule_sigma_1d, qat_call_lim_rule, qat_analyse_lim_rule_static_1d, qat_analyse_lim_rule_dynamic_1d

Examples

1
2
vec <- rnorm(1000)
result <- qat_analyse_lim_rule_sigma_1d(vec, 2)

qat documentation built on May 30, 2017, 8:27 a.m.