extend_ae_specific_subgroup function

Add subgroup analysis in AE specific analysis