50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


funcharts (version 1.7.0)

get_outliers_mfd: Get outliers from multivariate functional data

Description

Get outliers from multivariate functional data using the functional boxplot with the modified band depth of Sun et al. (2011, 2012). This function relies on the fbplot function of the roahd package.

Usage

get_outliers_mfd(mfdobj)

Value

A numeric vector with the indexes of the functional observations signaled as outliers.

Arguments

mfdobj

A multivariate functional data object of class mfd

References

  • Sun, Y., & Genton, M. G. (2011). Functional boxplots. Journal of Computational and Graphical Statistics, 20(2), 316-334.

  • Sun, Y., & Genton, M. G. (2012). Adjusted functional boxplots for spatio-temporal data visualization and outlier detection. Environmetrics, 23(1), 54-64.

Examples

Run this code
library(funcharts)
data("air")
air <- lapply(air, function(x) x[1:20, , drop = FALSE])
fun_covariates <- c("CO", "temperature")
mfdobj_x <- get_mfd_list(air[fun_covariates], lambda = 1e-2)
get_outliers_mfd(mfdobj_x)

Run the code above in your browser using DataLab