An automated sampling importance resampling procedure for estimating parameter uncertainty