sb_resample_groups function

Generate correlated design replicates for a set of groups