A predictive index for the flypaper effect