interaction.20x {s20x} | R Documentation |
Computes a factor that has a level for each combination of the factors "fac1" and "fac2".
interaction.20x(fac1,fac2)
fac1 |
the name of the first factor. |
fac2 |
the name of the second factor. |
Returns a vector containing the factor which represents the interaction of the given factors.
"factor".
## arousal data: data(arousal) attach(arousal) gender.picture<-factor(interaction.20x(gender,picture)) gender.picture detach(arousal)