space: Examine the space of incidence matrices with fixed marginals

View source: R/space.R

spaceR Documentation

Examine the space of incidence matrices with fixed marginals

Description

Examine the space of incidence matrices with fixed marginals

Usage

space(R, C)

Arguments

R

vector of row sums

C

vector of column sums

Details

This implementation attempts to ennumerate all matrices in the space, but a complete ennumeration is not guaranteed. The cardinality of the space is often unknown and can be quite large. Therefore, exercise caution when examining the space of matrices larger than 5x5.

Value

a list containing (a) a list of all matrices in the space and (b) a matrix of their perturbations

Examples

space(R = c(2,1,1), C = c(1,1,2))

incidentally documentation built on Aug. 8, 2025, 7:51 p.m.