bqs_rank | R Documentation |
Ranks the scores of clusters methods estimated via boostrap
bqs_rank(bqsol, rankby = "lq", boot_na_share = 0.25)
bqsol |
an object of class |
rankby |
character string specifying how the scored solution are ranked.
Possible values are |
boot_na_share |
a numeric value in |
An S3 object of class bqs
. Output components are those of
bqs
. See Value in bqs
.
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")}
bqs
# load data
data("banknote")
dat <- banknote[-1]
## set up methods
## see also help('mset_user') and related functions
KM <- mset_kmeans(K = 3)
GMIX <- mset_gmix(K=3, erc=c(1,100))
# combine tuned methods
mlist <- mbind(KM, GMIX)
# perform bootstrap
# change B and ncores to a much larger value in real problems
res <- bqs(dat, mlist, B = 3, rankby="lq", ncores=1)
res
# now change ranking criterion
res2 <- bqs_rank(res, rankby="mean")
res2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.