mv_tsout_ens.RdPerforms multivariate time series outlier ensembling.
mv_tsout_ens(
x,
m1 = NULL,
ncomp = 2,
sds = 1,
rept = 1,
compr = 2,
rat = 0.05,
fast = TRUE
)A data frame or a matrix object containing a multivariate time series
Variable indicating dimension reduction methods. Default is set to using all 4 methods: PCA, DOBIN, ICS and ICA.
The number of components for each dimension reduction method. Default is set to 2.
The random seed for generating a no-outlier time series.
The number of repetitions for generating a no-outlier time series.
To adjust for multiple testing, the results of the ensemble are compared with the results of a time series without outliers. If compr =1, a time series is simulated as in simulate_comp_ts without outliers. If compr = 2, the top outliers are removed from the outlier series and interpolated values are used for those time points. If compr = 3 both methods of simulation are used for comparison.
A comparison is done with the outliers removed time series. The variable rat denotes the ratio of outliers to be removed as a proportion of the whole dataset for this comparison.
For faster computation skip ICS decomposition method.
A list with the following components:
outliersThe outliers detected from the multivariate ensemble after comparing with the comparison time series without outliers.
allAll the outliers detected from the multivariate ensemble.
outmatA matrix with outlier scores organised by outlier method.
wtsThe weights of the outlier detection methods.
pca_loadingsThe basis vectors from PCA.
dobin_loadingsThe basis vectors from DOBIN. See R package dobin for more details.
ics_loadingsThe basis vectors from ICS. See R package ICS for more details.
ica_loadingsThe basis vectors from Independent Component Analysis.
decomp_wtsEach decomposition method has several components. For example if ncomp=2, then there are 2 PC components, 2 DOBIn components, etc ... The weight of each component is given different and depends on the decomposition method. These weights are given in decomp_wts.
outmat4DA 4D array with outlier scores organised by outlier method, decomposition method, components for each decomposition method and time.