R simulation that assesses the cross-validation performance of fungible weights