You may want to try hetcor
from John Fox's polycor
package. Revelle (the creator and maintainer of psych
) notes that convergence problems can happen with mixedCor
. I have had better luck with hetcor
, and it detects data types automatically, BUT you should make sure that your binary and ordered categorical variables are converted to factors
(ordered factors for the ordinal categorical variables) with the correct ordering. Otherwise, neither function works.