Subgroup analysis and investigation of heterogeneity