guido-s / meta

Official Git repository of R package meta
http://cran.r-project.org/web/packages/meta/index.html
GNU General Public License v2.0
82 stars 32 forks source link

Missing R^2 value in meta regression using function "metareg" #31

Closed exingwjx closed 3 years ago

exingwjx commented 3 years ago

Hi, this is Jiaxing Wang from Emory university, US. I am using R package "meta" for a meta-analysis. However, when applying the "metareg" function for meta-regression, it does not report R2 (the amount of heterogeneity explained by each variable). It only reports Tau^2, Tau, I^2 and H^2 .

My question is: how to get the R^2 value?

My session info:

Jiaxing

guido-s commented 3 years ago

I guess that you model does not contain an intercept. In such cases R2 is not reported (see help page of print.rma.uni).

guido-s commented 3 years ago

Another explanation could be that a generalized linear mixed model was used which does not return R2 (see help page of rma.glmm called internally).