mbind {qcluster} | R Documentation |
Combines Methods Settings
Description
The function combines functions containing clustering methods setups
built using mset_user
and related functions.
Usage
mbind(...)
Arguments
... |
one or more object of class |
Value
An S3 object of class 'qcmethod'
. Each element of the list
represents a competing method containing the following objects
fullname |
a string identifying the setup. |
callargs |
a list with arguments that are passed to the base function. |
fn |
the function implementing the specified setting. This |
References
Coraggio, Luca and Pietro Coretto (2023). Selecting the number of clusters, clustering models, and algorithms. A unifying approach based on the quadratic discriminant score. Journal of Multivariate Analysis, Vol. 196(105181), 1-20. doi: doi:10.1016/j.jmva.2023.105181
See Also
mset_user
, mset_gmix
, mset_kmeans
, mset_pam
Examples
# load data
data("banknote")
dat <- banknote[-1]
# generate kmeans setups
A <- mset_kmeans(K=c(2,3))
# generate gmix setups
B <- mset_gmix(K=c(2,3))
# combine setups
M <- mbind(A, B)
# get the PAM setting with K=3
m <- M[[4]]
m
# cluster data with M[[3]]
fit <- m$fn(dat)
fit