Description Usage Arguments Details Value Author(s) References See Also Examples
Computes an estimator optimizing the Gaussian likelihood over a
snipping set. The function snipEM.initialV
can be used to
perform some iterations to initialize V
.
1 2 3 | snipEM(X, V, tol = 1e-04, maxiters = 500, maxiters.S = 1000, print.it = FALSE)
snipEM.initialV(X, V, mu0, S0, maxiters.S = 100, greedy = TRUE)
|
X |
Data. |
V |
Binary matrix of the same size as |
tol |
Tolerance for convergence. Default is |
maxiters |
Maximum number of iterations for the SM algorithm. Default is |
maxiters.S |
Maximum number of iterations of the inner greedy snipping algorithm. Default is |
print.it |
Logical; if |
mu0 |
Initial estimate for the mean vector that is used in the initialization stage. |
S0 |
Initial estimate for the covariance matrix that is used in the initialization stage. |
greedy |
Logical; if |
This function computes the sclust
estimator of Farcomeni
(2014) with k=1. It therefore provides a robust estimate of
location and scatter in presence of entry-wise outliers. It is
based on a snip-maximize (SM) algorithm. At the S step, the
likelihood is optimized over the set of snipped entries, at the M
step the location and scatter estimates are updated. The S step is
based on a greedy algorithm, unlike the one proposed in Farcomeni
(2014,2014a). The number of snipped entries sum(1-V)
is kept
fixed throughout.
Results depend on good initialization of the V
matrix. A
boxplot rule (see examples) usually works well. The function
snipEM.initialV
can be used to improve the initial choice
through some iterations updating only V
from initial
(robust) estimates mu0
and S0
. In the example, the
EMVE is used to obtain mu0
and S0
.
A list with the following elements:
mu | Estimated location. |
S | Estimated scatter matrix. |
V | Final (optimal) V matrix. |
lik | Gaussian log-likelihood at convergence. |
iter | Number of outer iterations before convergence. |
Alessio Farcomeni alessio.farcomeni@uniroma1.it, Andy Leung andy.leung@stat.ubc.ca
Farcomeni, A. (2014) Snipping for robust k-means clustering under component-wise contamination, Statistics and Computing, 24, 909-917
Farcomeni, A. (2014) Robust constrained clustering in presence of entry-wise outliers, Technometrics, 56, 102-111
sclust
, stEM
,
sumlog
,
ldmvnorm
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.