tclustregIC {fsdaR} | R Documentation |
Computes tclustreg
for different number of groups k
and restriction factors c
.
Description
(the last two letters stand for 'Information Criterion') computes
the values of BIC (MIXMIX), ICL (MIXCLA) or CLA (CLACLA), for different values
of k
(number of groups) and different values of c
(restriction factor for the variances of the residuals), for
a prespecified level of trimming. In order to minimize randomness, given k
,
the same subsets are used for each value of c
.
Usage
tclustregIC(
y,
x,
alphaLik,
alphaX,
intercept = TRUE,
plot = FALSE,
nsamp,
refsteps = 10,
reftol = 1e-13,
equalweights = FALSE,
wtrim = 0,
we,
msg = TRUE,
RandNumbForNini,
trace = FALSE,
...
)
Arguments
y |
Response variable. A vector with |
x |
An n x p data matrix (n observations and p variables). Rows of x represent observations, and columns represent variables. Missing values (NA's) and infinite values (Inf's) are allowed, since observations (rows) with missing or infinite values will automatically be excluded from the computations. |
alphaLik |
Trimming level, a scalar between 0 and 0.5 or an
integer specifying the number of observations which have to be trimmed.
If |
alphaX |
Second-level trimming or constrained weighted model for |
intercept |
wheather to use constant term (default is |
plot |
If |
nsamp |
If a scalar, it contains the number of subsamples which will be extracted.
If |
refsteps |
Number of refining iterations in each subsample. Default is |
reftol |
Tolerance of the refining steps. The default value is 1e-14 |
equalweights |
A logical specifying wheather cluster weights in the concentration
and assignment steps shall be considered. If |
wtrim |
How to apply the weights on the observations - a flag taking values in c(0, 1, 2, 3, 4).
|
we |
Weights. A vector of size n-by-1 containing application-specific weights Default is a vector of ones. |
msg |
Controls whether to display or not messages on the screen If |
RandNumbForNini |
pre-extracted random numbers to initialize proportions.
Matrix of size k-by-nrow(nsamp) containing the random numbers which
are used to initialize the proportions of the groups. This option is effective only if
|
trace |
Whether to print intermediate results. Default is |
... |
potential further arguments passed to lower level functions. |
Value
An S3 object of class tclustreg.object
Author(s)
FSDA team, valentin.todorov@chello.at
References
Torti F., Perrotta D., Riani, M. and Cerioli A. (2019). Assessing Robust Methodologies for Clustering Linear Regression Data, Advances in Data Analysis and Classification, Vol. 13, pp 227-257.