count_contingency_tables_log {clustAnalytics}R Documentation

Natural logarithm of the number of contingency tables

Description

Given a contingency table, returns the natural logarithm of the number of contingency tables that share the same column and row sums. This implementation combines a Markov Chain Monte Carlo approximation with an analytical formula. The input can be either M a contingency table, or two vectors of labels c1 and c2 (in this case, we are counting contingency tables with the same column an row sums as the one produced by c1 and c2)

Usage

count_contingency_tables_log(c1, c2, M = NULL, monte_carlo_only = FALSE)

Arguments

c1, c2

membership vectors

M

contingency table

monte_carlo_only

Uses only the Monte Carlo approximation


[Package clustAnalytics version 0.5.5 Index]