The paper presents two statistical methods to compare summary estimates of different subgroups in meta-analysis. It also shows how to use Z test and meta-regression model with dichotomous data and continuous data in R software to explain the similarities and differences between the two statistical methods by examples.