is_in_gr {RMBC} | R Documentation |
is_in_gr
Description
Given Y data and a set of mixture parameters, this function returns a boolean vector B whose length is equal than Y length. A[i] is TRUE if only if Y[i] does not belong to the union of confidence ellipsoids of level given by the cutoff parameter.
Usage
is_in_gr(Y, cutoff = 0.999, theta.mu, theta.sigma)
Arguments
Y |
A matrix of size n x p. |
cutoff |
quantiles of chi-square to be used as a threshold for outliers detection, defaults to 0.999 |
theta.mu |
The estimated centers: A list with K elements, each of them is an array of length p. |
theta.sigma |
The estimated scatter matrices: A list with K matrices, each of them has dimension p x p |
Value
A boolean vector of length n, true at j-th location indicates that the j-th element of Y is a regular observation (that is, it is not considered as an outlier)
[Package RMBC version 0.1.0 Index]