The details provided should uniquely identify up to three
effects. If so, an interaction effect will be created and included or
not in the model.
Whether interactions between two or three given effects
can be created depends on their interactionType
(which can be, for
dependent network variables, empty, ego, or dyadic; and for dependent
behavioral variables, empty or OK). Consult the section on Interaction
Effects in the manual for this. The interactionType
is shown
in the list of effects obtained from the function
effectsDocumentation
.
From the point of view of model building it is usually advisable, when
including an interaction effect in a model, also to include the
corresponding main effects. This is however not enforced
by includeInteraction()
.
The input names interaction1
and interaction2
do not themselves
refer to a created interactions, but to dependence of the base effects on
other variables in the data set.
They are used to completely identify the effects.
A list of all effects in a given effects object (e.g., myeff
),
including their names of dependent variables, effect names, short names,
and values of interaction1 and interaction2 (if any),
is obtained by executing effectsDocumentation(myeff)
.