Learn R Programming

blockcluster (version 1.01)

cocluster: Co-Clustering function.

Description

This function performs Co-Clustering (simultanuous clustering of rows and columns ) for Binary, Contingency and Continuous datasets using latent block models.

Usage

cocluster(data, datatype, model, nbcocluster,
    strategy = cocluststrategy())

Arguments

data
Input data as matrix (or list containing data matrix, numeric vector for row effects and numeric vector column effects in case of contingency data with known row and column effects.)
datatype
This is the type of data which can be "binary" , "contingency" or "continuous".
model
This is the name of model. The following models exists for various kinds of datasets: rlll{ Model Datatype Proportions Dispersion/Variance pik_rhol_epsilonkl(Default) binary unequal unequal pik_rhol_epsilon binary unequa
nbcocluster
Interger vector specifying the number of row and column clusters respectively.
strategy
Object of class strategy.

Value

  • Return an object of BinaryOptions or ContingencyOptions or ContinuousOptions depending on whether the datatype is Binary, Contingency or Continuous respectively.

Examples

Run this code
# Simple example with simulated binary data
#load data
data(binarydata)
#usage of cocluster function in its most simplest form
out<-cocluster(binarydata,datatype="binary",nbcocluster=c(2,3))
#Summarize the output results
summary(out)
#Plot the original and co-clustered data
plot(out)

Run the code above in your browser using DataLab