Burt atrix

Share:

Description

The Burt matrix is a quadratic matrix where each row and column corresponds to a category in one of the variables. The entries of the matrix are the frequencies of the corresponding combination of categories.

Usage

1
Burt(x)

Arguments

x

A dataframe with factor variables or a contingency table.

Value

A matrix.

Author(s)

Alexander Pilhoefer

See Also

idat, imat

Examples

1
2
3
4
require(MASS)
Burt(housing)
th <- xtabs(Freq~Sat+Infl+Type, data = housing)
Burt(th)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.