"The weighted likelihood bootstrap and an algorithm for prepivoting"