mute_outliers: Set outlier samples to NA

View source: R/mute_outliers.R

mute_outliersR Documentation

Set outlier samples to NA

Description

This function sets outlier samples (per region, year, model, scenario) to NA. This is useful to clean your data before fitting. A data point is considered an outlier if it is more than range times of the interquartile range away from the the upper or lower end of the interquartile range http://colingorrie.github.io/outlier-detection.html

Usage

mute_outliers(data, range = 1.5)

Arguments

data

MAgPIE object containing the samples to remove the duplicates from.

range

Multiplied with the interquartile range this is the maximal distance a data point may have to not be considered an outlier.

Value

Magpie object with duplicated samples set to NA.

Author(s)

David Klein

See Also

boxplot


pik-piam/remulator documentation built on Oct. 19, 2023, 4:07 p.m.