Symm {gnm}R Documentation

Symmetric Interaction of Factors

Description

Symm codes the symmetric interaction of factors having the same set of levels, for use in regression models of symmetry or quasi-symmetry.

Usage

Symm(...)

Arguments

... one or more factors.

Value

A factor whose levels index the symmetric interaction of all factors supplied as input.

Note

Symm relies on the gtools package from CRAN

Author(s)

David Firth

See Also

Diag

Examples

if (require(gtools)) {
    row <- gl(4, 4, 16)
    col <- gl(4, 1, 16)
    symm4by4 <- Symm(row, col)
    matrix(symm4by4, 4, 4)
} else cat("Symm requires the gtools package to be installed\n")

[Package gnm version 0.9-8 Index]