interaction.20x {s20x}R Documentation

Interaction

Description

Computes a factor that has a level for each combination of the factors "fac1" and "fac2".

Usage

interaction.20x(fac1,fac2)

Arguments

fac1 the name of the first factor.
fac2 the name of the second factor.

Value

Returns a vector containing the factor which represents the interaction of the given factors.

See Also

"factor".

Examples

## arousal data:
data(arousal)
attach(arousal)
gender.picture<-factor(interaction.20x(gender,picture))
gender.picture
detach(arousal)

[Package s20x version 2.0.1 Index]