Description Usage Arguments Value Examples
This function implements the interaction clustering part of the Least Squares Bilinear Clustering method of Schoonees, Groenen and Van de Velden (2014).
1 2 3 4 5 | int.lsbclust(data, margin = 3L, delta, nclust, ndim = 2,
fixed = c("none", "rows", "columns"), nstart = 50, starts = NULL,
alpha = 0.5, parallel = FALSE, mc.cores = detectCores() - 1,
maxit = 100, verbose = 1, method = "diag", minsize = 3L,
return_data = FALSE)
|
data |
A three-way array representing the data. |
margin |
An integer giving the single subscript of |
delta |
A four-element binary vector (logical or numeric) indicating which sum-to-zero constraints must be enforced. |
nclust |
An integer giving the desired number of clusters. If it is a vector, the algorithm will be run for each element. |
ndim |
The required rank for the approximation of the interactions (a scalar). |
fixed |
One of |
nstart |
The number of random starts to use. |
starts |
A list containing starting configurations for the cluster membership vector. If not supplied, random initializations will be generated. |
alpha |
Numeric value in [0, 1] which determines how the singular values are distributed between rows and columns. |
parallel |
Logical indicating whether to parallelize over different starts or not. |
mc.cores |
The number of cores to use in case |
maxit |
The maximum number of iterations allowed. |
verbose |
Integer controlling the amount of information printed: 0 = no information, 1 = Information on random starts and progress, and 2 = information is printed after each iteration for the interaction clustering. |
method |
The method for calculating cluster agreement across random starts, passed on
to |
minsize |
Integer giving the minimum size of cluster to uphold when reinitializing empty clusters. |
return_data |
Logical indicating whether to include the data in the return value or not |
An object of class int.lsb
1 2 3 | data("supermarkets")
out <- int.lsbclust(data = supermarkets, margin = 3, delta = c(1,1,0,0), nclust = 4, ndim = 2,
fixed = "rows", nstart = 1, alpha = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.