Symm: Symmetric Interaction of Factors

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Symm.R

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

1
Symm(..., separator = ":")

Arguments

...

one or more factors.

separator

a character string of length 1 or more, to be used in naming the levels of the resulting interaction factor.

Value

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

Author(s)

David Firth and Heather Turner

See Also

Diag

Examples

1
2
3
4
rowfac <- gl(4, 4, 16)
colfac <- gl(4, 1, 16)
symm4by4 <- Symm(rowfac, colfac)
matrix(symm4by4, 4, 4)

hturner/gnm documentation built on June 22, 2018, 5:14 a.m.