Description Usage Arguments Examples
This function compares cluster membership and parameter estimates for the results of
akmeans
on simulated data, constructed using rlsbclust
,
to the true underlying values.
1 2 |
fitted |
An object of class |
actual |
An object of class |
method |
The method for calculating cluster agreement across random starts, passed on
to |
1 2 3 4 5 6 | ## Simulate LSBCLUST data, fit akmeans on double-centered data, and compare
set.seed(1)
dat <- rlsbclust(ndata = 1, nobs = 100, size = c(10, 8), nclust = c(5, 4, 6, 5))
dat[[1]]$data <- carray(dat[[1]]$data)
res <- akmeans(data = dat[[1]]$data, centers = 5, margin = 3, ndim = 2)
cfsim(res, dat[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.