An algorithm for the treatment of ordinal variables in a SEM model Electronic