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

View source: R/qat_analyse_lim_rule_sigma_1d.R

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

1 | ```
qat_analyse_lim_rule_sigma_1d(measurement_vector, sigma_factor)
``` |

`measurement_vector` |
The measurement vector, which should be tested |

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

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.

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 |

Andre Duesterhus

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

`qat_plot_lim_rule_sigma_1d`

, `qat_call_lim_rule`

, `qat_analyse_lim_rule_static_1d`

, `qat_analyse_lim_rule_dynamic_1d`

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.