functional_filter {funcharts} | R Documentation |
Finds functional componentwise outliers
Description
It finds functional componentwise outliers as described in Capezza et al. (2024).
Usage
functional_filter(
mfdobj,
method_pca = "ROBPCA",
alpha = 0.95,
fev = 0.999,
delta = 0.1,
alpha_binom = 0.99,
bivariate = TRUE,
max_proportion_componentwise = 0.5
)
Arguments
mfdobj |
A multivariate functional data object of class mfd. |
method_pca |
The method used in |
alpha |
Probability value such that only values of functional distances greater than
the |
fev |
Number between 0 and 1 denoting the fraction
of variability that must be explained by the
principal components to be selected to calculate functional distances after
applying RoMFPCA on |
delta |
Number between 0 and 1 denoting the parameter of the
Binomial distribution whose |
alpha_binom |
Probability value such that the |
bivariate |
If TRUE, both univariate and bivariate filters are applied. If FALSE, only the univariate filter is used. Default is TRUE. |
max_proportion_componentwise |
If the functional filter identifies a proportion of functional
componentwise outliers larger than |
Value
A list with two elements.
The first element is an mfd
object containing
the original observation in the mfdobj
input, but where
the basis coefficients of the components identified as functional
componentwise outliers are replaced by NA.
The second element of the list is a list of numbers, with length equal
to the number of functional variables in mfdobj
.
Each element of this list contains the observations of the flagged
functional componentwise outliers for the corresponding functional variable.
References
Agostinelli, C., Leung, A., Yohai, V. J., and Zamar, R. H. (2015). Robust estimation of multivariate location and scatter in the presence of cellwise and casewise contamination. Test, 24(3):441–461.
Capezza, C., Centofanti, F., Lepore, A., Palumbo, B. (2024) Robust Multivariate Functional Control Charts. Technometrics, doi:10.1080/00401706.2024.2327346.
Leung, A., Yohai, V., and Zamar, R. (2017). Multivariate location and scatter matrix estimation under cellwise and casewise contamination. Computational Statistics & Data Analysis, 111:59–76.
Examples
## Not run:
library(funcharts)
mfdobj <- get_mfd_list(air, grid = 1:24, n_basis = 13, lambda = 1e-2)
plot_mfd(mfdobj)
out <- functional_filter(mfdobj)
## End(Not run)