add group-specific variance example

closes #139