qat_analyse_roc_rule_dynamic_1d: Perform a dynamic roc-rule-check

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

View source: R/qat_analyse_roc_rule_dynamic_1d.R

Description

This check tests data on whether the change between two consecutive data points exceeds a dynamic threshold.

Usage

1
2
3
qat_analyse_roc_rule_dynamic_1d(measurement_vector, max_upward_vector = NULL, 
max_downward_vector = NULL, upward_vector_name = NULL, downward_vector_name = NULL,
upward_vector_identifier = NULL, downward_vector_identifier = NULL)

Arguments

measurement_vector

The measurement vector, which should be tested

max_upward_vector

A vector which consists of the threshold values for upward changes, with the same dimension like the measurement vector

max_downward_vector

A vector which consists of the threshold values for downward changes, with the same dimension like the measurement vector and have to be positive definite

upward_vector_name

A name or title of the upward vector, which will be given back in the result

downward_vector_name

A name or title of the downward vector, which will be given back in the result

upward_vector_identifier

The identifier of the upward vector

downward_vector_identifier

The identifier of the downward vector

Details

This check tests two consecutive elements, on wether the change of values between those two exceeds the upward or downward threshold. The result will be given back as a list, which contains the result of the test as a flagvector and its parameters. For every change between two elements of the measurement vector the flagvector contains a -1, if its exceeding its dedicated downward vector element, a 1, if its exceeding its dedicated upward vector element, or a 0, when no exceeding has happend. NaN-values in the measurement vector will be given back as a 0 in the flagvector, NaN-values in the upward or downward-vector are considered as not existing.

Value

It returns a list with the following entries:

flagvector

A vector of length of measurement vector. For every change between two elements of the measurement vector the flagvector contains a -1, if its exceeding its dedicated downward vector element, a 1, if its exceeding its dedicated upward vector element, or a 0, when no exceeding has happend.

max_upward_vector

Give back the given max\_upward\_vector

max_downward_vector

Give back the given max\_downward\_vector

upward_vector_name

Give back the given upward\_vector\_name

downward_vector_name

Give back the given downward\_vector\_name

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_roc_rule_dynamic_1d, qat_call_roc_rule, qat_analyse_roc_rule_static_1d

Examples

1
2
3
4
5
vec <- rnorm(100)
min_vector<-seq(1,2,length.out=100)
max_vector<-seq(1,2,length.out=100)
result <- qat_analyse_roc_rule_dynamic_1d(vec, min_vector, max_vector, 
upward_vector_name="upward vector", downward_vector_name="downward vector")

qat documentation built on May 2, 2019, 4:06 p.m.