is_in_gr: is_in_gr

Description Usage Arguments Value

View source: R/is_in_gr.R

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

1
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)


RMBC documentation built on July 22, 2021, 9:07 a.m.

Related to is_in_gr in RMBC...