cfsim.lsbclust {lsbclust} | R Documentation |
Compare LSBCLUST Simulation Results
Description
This function compares cluster membership and parameter estimates for the results of
lsbclust
on simulated data to the true underlying values.
Usage
## S3 method for class 'lsbclust'
cfsim(fitted, actual, method = c("diag", "cRand"))
Arguments
fitted |
An object of class |
actual |
An object of class |
method |
The type of statistics to calculate, passed to |
Examples
## Simulate LSBCLUST data, fit LSBCLUST, and compare
set.seed(1)
dat <- rlsbclust(ndata = 1, nobs = 100, size = c(10, 8), nclust = c(5, 4, 6, 5))
res <- lsbclust(data = dat[[1]]$data, nclust = c(5, 4, 6, 5))
cfsim(res, dat[[1]])
[Package lsbclust version 1.1 Index]