cfsim.T3Clusf {lsbclust}R Documentation

Compare LSBCLUST Simulation Results

Description

This function compares cluster membership and parameter estimates for the results of T3Clusf on simulated data, using rlsbclust, to the true underlying values.

Usage

## S3 method for class 'T3Clusf'
cfsim(fitted, actual, method = c("diag", "cRand"))

Arguments

fitted

An object of class lsbclust containing the fitted results.

actual

An object of class lsbclust_sim containing the simulated data.

method

The method for calculating cluster agreement across random starts, passed on to cl_agreement. None is calculated when set to NULL.

Examples

## Simulate LSBCLUST data, fit T3Clusf 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 <- T3Clusf(X = dat[[1]]$data, Q = 2, G = 5)
cfsim(res, dat[[1]])

[Package lsbclust version 1.1 Index]