S_G_squared function

Calculate sample variance of generic statistic