mbind | R Documentation |
The function combines functions containing clustering methods setups
built using mset_user
and related functions.
mbind(...)
... |
one or more object of class |
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 |
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: \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jmva.2023.105181")}
mset_user
, mset_gmix
, mset_kmeans
, mset_pam
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.