The createPcAux function in version 0.0.0.9012 returns the following warning when specifying interactType = 0:
Warning:
You have specified 'interactType = 1' without specifying any moderators, so I
will incorporate all pairwise interactions among the observed variables into the
initial imputation model.
Fortunately, the behavior outlined in the warning is not forced on the user in this case so the interactType functionality seems to be working as intended. The warning occurs due to the check that happens on lines 65-69, or more specifically, line 68, which looks like this:
if(pcAuxData$intMeth < 3) warnFun("noMods")
I would suggest changing this line to the following:
The createPcAux function in version 0.0.0.9012 returns the following warning when specifying interactType = 0:
Fortunately, the behavior outlined in the warning is not forced on the user in this case so the interactType functionality seems to be working as intended. The warning occurs due to the check that happens on lines 65-69, or more specifically, line 68, which looks like this:
I would suggest changing this line to the following:
This script should solve the issue with the false warning and is roughly twice as fast as when using
%in%
for the same operation.