Resampling regression models in the presence of network effects