`R/mf.R`

`mf_outlier.Rd`

check outliers. in: a vector. out: a plot and a vector of flags. the blank flag means passing all checks.

mf_outlier(x, ifplot = FALSE, rangecheck = FALSE, r.min = -Inf, r.max = Inf, boxcheck = FALSE, errorcheck = FALSE, e.w = 7, d.w = 21, d.quantile = 0.95, d.quantile.factor = 1.3, sd.check = FALSE, sd.w = 29, sd.factor.lower = 3, sd.factor.upper = 3)

x | data to be checked |
---|---|

ifplot | logical |

rangecheck | logical |

r.min | lower threshold of rangecheck |

r.max | upper threshold of rangecheck |

boxcheck | logical |

errorcheck | logical |

e.w | window width of absolute deviation calculation |

d.w | window width of quantile calculation |

sd.check | logical |

outlier makers. 'R' means the value has failed the range check. E the error check. S the sd check. B the boxplot check.