Learn R Programming

Matrix (version 0.9-1)

sscCrosstab: Create pairwise crosstabulation

Description

Create the pairwise crosstabulation of two or more factors and store it as an object of class "sscCrosstab" which consists of a symmetric, sparse, positive semidefinite matrix, a vector of the counts of the levels in each factor, and, optionally, a permutation and inverse permutation that will minimize fill-in in the Cholesky decomposition of this matrix while maintaining separation of the groups of columns corresponding to different factors.

Usage

sscCrosstab(flist, upper = TRUE)

Arguments

flist
A list of two or more factors. All factors must have the same length.
upper
logical - if TRUE the upper triangle of the pairwise cross-tabulation matrix is computed and returned. Otherwise the lower triangle is returned. Defaults to TRUE.

Value

  • An object of class "sscCrosstab".

See Also

sscCrosstab-class