As regards to "请问选择加i和不加i的选择原则是什么?", please read this article:
http://www.stata-journal.com/article.html?article=sbe24_2
As regards to "为什么把两个选项fixedi, randomi同时放入进去不行", you can do like this:
metan depigr nodepigr depngr nodepngr, label(namevar=study, yearvar=year) or randomi second(fixedi) counts texts(120) astext(60)
There is no clear-cut simple rule for meta-analysis.
When you play with (explore) your data, you can try both random and fixed effect model at the same time. For final results, you either use random effect model or fixed effect model but not both at the same time. Which model you select depends on your data and the aim of your study.
Generally speaking, when studies are gathered from the public literature, the random effect model is generally a more plausible first choice. The inverse variance (I-V) method and the Mantel-Haenszel (M-H) method uses different weighting scheme to compute summary (final) effect. Although in many cases, I-V and M-H give similar results, the inverse variance method may perform poorly for studies with very low or very high event rates or small sample size.
Take your igr-ngr study in your recent post as an example, if I were you, I would use the following command as the backbone of the final analysis:
metan depigr nodepigr depngr nodepngr, label(namevar=study, yearvar=year) or random counts texts(120) astext(60)