spatial.outlier is used to find the multivariate spatial outlier within a p-variate data cloud or to identify if any p-variate observation is an outlier with respect to a p-variate data cloud.
Usage
spatial.outlier(data, x = data, threshold = 0.05)
Arguments
data
A matrix or a data.frame of p-variate observations which works as the data cloud.
x
A matrix or a data.framep-variate to test whether is an outlier with respect to the data. Defaults to data, to find outliers (if exists) within the data.
threshold
A decimal threshold between 0 and 1 on the spatial.depth. Spatial depth values less than which will be considered as outlier. Defaults to 0.05. Usually taken as 0.1 or 0.05 or 0.01.
Value
FALSE :: If there doesnot exist any outlierA list with objects (If outliers exist)index :: Returns the indices of the outliersobservation :: Returns the p-variate outliers