partitioncat: partitioncat function

Description Usage Arguments Value Examples

View source: R/optionclasses.R

Description

This function proposed a partition of the variables for the Gibbs chain initialization. The partition is done by a CAH algorithm based on the Cramer's V distance matrix between the couples of variables. The partition with at the maximum four variables in the same block which minimizes the number of blocks is return by this function.

Usage

1

Arguments

data

Input data as matrix of non-zero integers.

Value

Return an vector of the variables partition.

Examples

1
2
3
# Simple example with binary data 
data("dentist")
partitioncat(dentist)

Clustericat documentation built on May 2, 2019, 5:45 p.m.