Code to help get through analysis for GSE paper on sampling df